theSq3Lite 10.0 NHI1 - theKernel - theLink - theConfig - theSq3Lite - theCompiler - theBrain - theGuard - theLib - theATL
c - tcl - atl - cs - py - rb - jv - cc
Loading...
Searching...
No Matches
Sq3Lite_Version_C_API

Sq3Lite PACKAGE - get version information … More...

+ Collaboration diagram for Sq3Lite_Version_C_API:

Functions

static MK_STRN Sq3Libversion (void)
 Run-Time Library Version Numbers …
 
static enum MkErrorE Sq3LibversionNumber (void)
 Run-Time Library Version Numbers …
 
static MK_STRN Sq3Sourceid (void)
 Run-Time Library Version Numbers …
 

Sq3Lite - Sq3Lite_Version_C_API - function

MK_STRN Sq3LibversionP (void)
 Non-inline replacement for Sq3Libversion
 
enum MkErrorE Sq3LibversionNumberP (void)
 Non-inline replacement for Sq3LibversionNumber
 
MK_STRN Sq3SourceidP (void)
 Non-inline replacement for Sq3Sourceid
 

Sq3Lite - Sq3Lite_Version_C_API - overload

#define Sq3LibversionNumber_E(...)
 
#define Sq3LibversionNumber_C(...)
 

Detailed Description

Sq3Lite PACKAGE - get version information …

Macro Definition Documentation

◆ Sq3LibversionNumber_C

#define Sq3LibversionNumber_C ( ...)
Value:
if (MkErrorCheckI(Sq3LibversionNumber(__VA_ARGS__)))
static enum MkErrorE Sq3LibversionNumber(void)
Run-Time Library Version Numbers …

Definition at line 309 of file sqlite3_overload_sq3.h.

◆ Sq3LibversionNumber_E

#define Sq3LibversionNumber_E ( ...)
Value:
MkErrorCheck(Sq3LibversionNumber(__VA_ARGS__))

Definition at line 308 of file sqlite3_overload_sq3.h.

Function Documentation

◆ Sq3Libversion()

static MK_STRN Sq3Libversion ( void )
inlinestatic

Run-Time Library Version Numbers …

These interfaces provide the same information as the SQLITE_VERSION, SQLITE_VERSION_NUMBER, and SQLITE_SOURCE_ID C preprocessor macros but are associated with the library instead of the header file. Cautious programmers might include assert() statements in their application to verify that values returned by these interfaces match the macros in the header, and thus ensure that the application is compiled with matching library and header files.

assert( sqlite3_libversion_number()==SQLITE_VERSION_NUMBER );
assert( strncmp(sqlite3_sourceid(),SQLITE_SOURCE_ID,80)==0 );
assert( strcmp(sqlite3_libversion(),SQLITE_VERSION)==0 );

The sqlite3_version[] string constant contains the text of SQLITE_VERSION macro. The Sq3Libversion() function returns a pointer to the to the sqlite3_version[] string constant. The Sq3Libversion() function is provided for use in DLLs since DLL users usually do not have direct access to string constants within the DLL. The Sq3LibversionNumber() function returns an integer equal to SQLITE_VERSION_NUMBER. The Sq3Sourceid() function returns a pointer to a string constant whose value is the same as the SQLITE_SOURCE_ID C preprocessor macro. Except if SQLite is built using an edited copy of the amalgamation, then the last four characters of the hash might be different from SQLITE_SOURCE_ID.

See also: sqlite_version () and sqlite_source_id ().

Reference code from sqlite3:

SQLITE_API const char *sqlite3_libversion(void);
SQLITE_API const char *sqlite3_sourceid(void);
#define SQLITE_API
#define SQLITE_EXTERN
SQLITE_API SQLITE_EXTERN const char sqlite3_version[]
SQLITE_API const char * sqlite3_sourceid(void)
SQLITE_API const char * sqlite3_libversion(void)
SQLITE_API int sqlite3_libversion_number(void)

Definition at line 890 of file LibSq3Lite_sq3.h.

890 {
891 MK_STRN __retVal__L = sqlite3_libversion();
892 return __retVal__L;
893 }
const MK_STRB * MK_STRN
+ Here is the caller graph for this function:

◆ Sq3LibversionNumber()

static enum MkErrorE Sq3LibversionNumber ( void )
inlinestatic

Run-Time Library Version Numbers …

read more at 'Sq3Libversion'

Definition at line 896 of file LibSq3Lite_sq3.h.

896 {
897 enum Sq3ErrorE errVal = (enum Sq3ErrorE)sqlite3_libversion_number();
899 return MK_OK;
900 error:
901 return MK_ERROR;
902 }
MK_ERROR
MK_OK
Sq3ErrorE
Result Codes.
#define Sq3ErrorE_Check_Package(PROC)
+ Here is the caller graph for this function:

◆ Sq3LibversionNumberP()

enum MkErrorE Sq3LibversionNumberP ( void )

Non-inline replacement for Sq3LibversionNumber

◆ Sq3LibversionP()

MK_STRN Sq3LibversionP ( void )

Non-inline replacement for Sq3Libversion

◆ Sq3Sourceid()

static MK_STRN Sq3Sourceid ( void )
inlinestatic

Run-Time Library Version Numbers …

read more at 'Sq3Libversion'

Definition at line 905 of file LibSq3Lite_sq3.h.

905 {
906 MK_STRN __retVal__L = sqlite3_sourceid();
907 return __retVal__L;
908 }
+ Here is the caller graph for this function:

◆ Sq3SourceidP()

MK_STRN Sq3SourceidP ( void )

Non-inline replacement for Sq3Sourceid