TkN
2.7.1
Toolkit for Nuclei
Loading...
Searching...
No Matches
tksqlite_runtime.h
1
#ifndef TKN_SQLITE_RUNTIME_H
2
#define TKN_SQLITE_RUNTIME_H
3
#include "tkn_config.h"
4
5
// Private compatibility checks; never reconfigure a shared engine.
6
namespace
tkn
{
namespace
detail
{
7
enum class
sqlite_compatibility
{
compatible
,
too_old
,
older_than_headers
,
no_mutexes
};
8
constexpr
sqlite_compatibility
check_sqlite_runtime
(
int
runtime,
int
headers,
int
mutexes)
9
{
10
return
runtime < TKN_SQLITE_MIN_VERSION_NUMBER ?
sqlite_compatibility::too_old
:
11
runtime < headers ?
sqlite_compatibility::older_than_headers
:
12
mutexes == 0 ?
sqlite_compatibility::no_mutexes
:
sqlite_compatibility::compatible
;
13
}
14
} }
15
#endif
tkn::detail
Definition
tkcsv.h:12
tkn::detail::sqlite_compatibility
sqlite_compatibility
Definition
tksqlite_runtime.h:7
tkn::detail::sqlite_compatibility::older_than_headers
@ older_than_headers
Definition
tksqlite_runtime.h:7
tkn::detail::sqlite_compatibility::compatible
@ compatible
Definition
tksqlite_runtime.h:7
tkn::detail::sqlite_compatibility::too_old
@ too_old
Definition
tksqlite_runtime.h:7
tkn::detail::sqlite_compatibility::no_mutexes
@ no_mutexes
Definition
tksqlite_runtime.h:7
tkn::detail::check_sqlite_runtime
constexpr sqlite_compatibility check_sqlite_runtime(int runtime, int headers, int mutexes)
Definition
tksqlite_runtime.h:8
tkn
Definition
tklog.cpp:16
src
db
tksqlite_runtime.h
Generated by
1.13.2