Lance C/C++ Bindings
C ABI and header-only C++ RAII wrappers for the Lance columnar data format
Loading...
Searching...
No Matches
version.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: Apache-2.0 */
2/* SPDX-FileCopyrightText: Copyright The Lance Authors */
3
9#ifndef LANCE_VERSION_H
10#define LANCE_VERSION_H
11
12#include "lance/attributes.h"
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18/* ─── Binding version ─── */
19
20/* Version of the lance-c binding, synchronized with Cargo.toml. These macros
21 * describe this C API release, not the Lance core dataset/file writer version
22 * or a Git pin. */
23#define LANCE_C_VERSION_MAJOR 0
24#define LANCE_C_VERSION_MINOR 2
25#define LANCE_C_VERSION_PATCH 1
26/* Pre-release suffix without the leading '-'; empty for a stable release. */
27#define LANCE_C_VERSION_PRE "beta.8"
28/* Full Cargo package version, including any pre-release or build suffix. */
29#define LANCE_C_VERSION_STRING "0.2.1-beta.8"
30#define LANCE_C_VERSION_ENCODE(major, minor, patch) \
31 (((major) * 1000000) + ((minor) * 1000) + (patch))
32/* Numeric form for #if comparisons. The pre-release suffix is not encoded, so
33 * a pre-release compares equal to its base release; use LANCE_C_VERSION_PRE or
34 * LANCE_C_VERSION_STRING when the exact release identity matters. Major,
35 * minor, and patch must each be less than 1000. */
36#define LANCE_C_VERSION \
37 LANCE_C_VERSION_ENCODE(LANCE_C_VERSION_MAJOR, LANCE_C_VERSION_MINOR, LANCE_C_VERSION_PATCH)
38
51
52#ifdef __cplusplus
53} /* extern "C" */
54#endif
55
56#endif /* LANCE_VERSION_H */
Declaration attributes shared by every public header.
#define LANCE_NODISCARD
Definition attributes.h:48
#define LANCE_API
Definition attributes.h:27
LANCE_NODISCARD LANCE_API const char * lance_c_version(void)