libsl3 1.2.47002
A C++ interface for SQLite
Loading...
Searching...
No Matches
config.hpp
1/******************************************************************************
2 ------------- Copyright (c) 2009-2016 H a r a l d A c h i t z ---------------
3 ---------- < h a r a l d dot a c h i t z at g m a i l dot c o m > ------------
4 ---- This Source Code Form is subject to the terms of the Mozilla Public -----
5 ---- License, v. 2.0. If a copy of the MPL was not distributed with this -----
6 ---------- file, You can obtain one at http://mozilla.org/MPL/2.0/. ----------
7 ******************************************************************************/
8
9
10 /************************************************************************
11 !!!! THIS FILE IS AUTOGENERATED BY CMAKE !!!!
12 *************************************************************************/
13
14#ifndef SL3_CONFIG
15#define SL3_CONFIG
16
17
18// TODO this has to look like here https://gcc.gnu.org/wiki/Visibility
19
20#if defined(_WIN32) && defined(_MSC_VER)
21 #if defined(LIBSL3_DLL)
22 #define LIBSL3_API __declspec(dllexport)
23 #elif defined(LINK_SL3_DLL)
24 #define LIBSL3_API __declspec(dllimport)
25 #else
26 #define LIBSL3_API
27 #endif
28#else
29 #define LIBSL3_API
30#endif
31
32#include <cstdint>
33
34//#define LIBSL3_API
35
36/**
37 \namespace sl3
38 \brief Namespace of libSL3.
39
40 The namespace where the library defines it's elements.
41
42*/
43namespace sl3
44{
45
46 static constexpr int MAJOR_VERSION = 1 ;
47 static constexpr int MINOR_VERSION = 2 ;
48 static constexpr int PATCH_VERSION = 47002 ;
49
50
51 /**
52 * \brief sqlite version string at compile time
53 *
54 * if this library was linked against an installed version of sqlite
55 * this function can be used to determinate if the system library has
56 * been updated.
57 * \sa sqliteRuntimeVersion()
58 *
59 * \return version string at compile time
60 */
61 const char* sqliteCompiledVersion();
62
63 /**
64 * \brief sqlite version number at compile time
65 *
66 * if this library was linked against an installed version of sqlite
67 * this function can be used to determinate if the system library has
68 * been updated.
69 * \sa sqliteRuntimeVersionNumber()
70 *
71 * \return version number at compile time
72 */
74
75
76 /**
77 * \brief sqlite version string at runtime
78 *
79 * if this library was linked against an installed version of sqlite
80 * this function can be used to determinate if the system library has
81 * been updated.
82 * \sa sqliteCompiledVersion()
83 *
84 * \return version string currently used
85 */
86 const char* sqliteRuntimeVersion();
87
88 /**
89 * \brief sqlite version number at compile time
90 *
91 * if this library was linked against an installed version of sqlite
92 * this function can be used to determinate if the system library has
93 * been updated.
94 * \sa sqliteCompiledVersionNumber()
95 *
96 * \return sqlite version number currently used
97 */
99
100
101 /**
102 * \brief returns value of SQLITE_THREADSAFE compilation option
103 *
104 * see http://www.sqlite.org/compile.html about additional informations
105 *
106 * \return 0 or 1 or 2
107 */
109
110
111}
112
113
114#endif
Namespace of libSL3.
Definition columns.hpp:18
int sqliteThreadSafeCompileOption()
returns value of SQLITE_THREADSAFE compilation option
const char * sqliteRuntimeVersion()
sqlite version string at runtime
int sqliteCompiledVersionNumber()
sqlite version number at compile time
const char * sqliteCompiledVersion()
sqlite version string at compile time
int sqliteRuntimeVersionNumber()
sqlite version number at compile time