Lance C/C++ Bindings
C ABI and header-only C++ RAII wrappers for the Lance columnar data format
Loading...
Searching...
No Matches
version.h File Reference

lance-c binding version macros and the runtime version accessor. More...

#include "lance/attributes.h"

Go to the source code of this file.

Macros

#define LANCE_C_VERSION_MAJOR   0
 
#define LANCE_C_VERSION_MINOR   2
 
#define LANCE_C_VERSION_PATCH   1
 
#define LANCE_C_VERSION_PRE   "beta.8"
 
#define LANCE_C_VERSION_STRING   "0.2.1-beta.8"
 
#define LANCE_C_VERSION_ENCODE(major, minor, patch)
 
#define LANCE_C_VERSION    LANCE_C_VERSION_ENCODE(LANCE_C_VERSION_MAJOR, LANCE_C_VERSION_MINOR, LANCE_C_VERSION_PATCH)
 

Functions

LANCE_NODISCARD LANCE_API const char * lance_c_version (void)
 

Detailed Description

lance-c binding version macros and the runtime version accessor.

Definition in file version.h.

Macro Definition Documentation

◆ LANCE_C_VERSION

Definition at line 36 of file version.h.

◆ LANCE_C_VERSION_ENCODE

#define LANCE_C_VERSION_ENCODE ( major,
minor,
patch )
Value:
(((major) * 1000000) + ((minor) * 1000) + (patch))

Definition at line 30 of file version.h.

◆ LANCE_C_VERSION_MAJOR

#define LANCE_C_VERSION_MAJOR   0

Definition at line 23 of file version.h.

◆ LANCE_C_VERSION_MINOR

#define LANCE_C_VERSION_MINOR   2

Definition at line 24 of file version.h.

◆ LANCE_C_VERSION_PATCH

#define LANCE_C_VERSION_PATCH   1

Definition at line 25 of file version.h.

◆ LANCE_C_VERSION_PRE

#define LANCE_C_VERSION_PRE   "beta.8"

Definition at line 27 of file version.h.

◆ LANCE_C_VERSION_STRING

#define LANCE_C_VERSION_STRING   "0.2.1-beta.8"

Definition at line 29 of file version.h.

Function Documentation

◆ lance_c_version()

LANCE_NODISCARD LANCE_API const char * lance_c_version ( void )

Return the version of the loaded lance-c library as a NUL-terminated string, including any pre-release suffix (for example "0.2.0-beta.1").

The returned string is owned by the library and remains valid for the process lifetime; do not free it. Compare it with LANCE_C_VERSION_STRING from the headers used at compile time to detect a header/library mismatch.

This reports the lance-c binding release, not the Lance core writer version or a Git revision.