SciLex
A header-only C++20 lexer built on REAL
Loading...
Searching...
No Matches
Macros
version.hpp File Reference

SciLex's version, for the preprocessor and at run time. More...

Macros

#define SCILEX_VERSION_MAJOR   2026
 Major version (the calendar year).
 
#define SCILEX_VERSION_MINOR   10
 Minor version (the calendar month).
 
#define SCILEX_VERSION_PATCH   4
 Patch version (the release count within the month).
 
#define SCILEX_STRINGIZE_IMPL(x)   #x
 Inner half of the two-level stringize: turns its argument into a string literal.
 
#define SCILEX_STRINGIZE(x)   SCILEX_STRINGIZE_IMPL(x)
 Stringizes the expansion of x — what the second level buys.
 
#define SCILEX_VERSION_STRING
 The version as "MAJOR.MINOR.PATCH".
 

Detailed Description

SciLex's version, for the preprocessor and at run time.

make release rewrites the three numeric macros; SCILEX_VERSION_STRING derives from them, and make version-check refuses a header that disagrees with pyproject.toml.

Macro Definition Documentation

◆ SCILEX_STRINGIZE

#define SCILEX_STRINGIZE (   x)    SCILEX_STRINGIZE_IMPL(x)

Stringizes the expansion of x — what the second level buys.

◆ SCILEX_STRINGIZE_IMPL

#define SCILEX_STRINGIZE_IMPL (   x)    #x

Inner half of the two-level stringize: turns its argument into a string literal.

◆ SCILEX_VERSION_MAJOR

#define SCILEX_VERSION_MAJOR   2026

Major version (the calendar year).

◆ SCILEX_VERSION_MINOR

#define SCILEX_VERSION_MINOR   10

Minor version (the calendar month).

◆ SCILEX_VERSION_PATCH

#define SCILEX_VERSION_PATCH   4

Patch version (the release count within the month).

◆ SCILEX_VERSION_STRING

#define SCILEX_VERSION_STRING
Value:
SCILEX_STRINGIZE(SCILEX_VERSION_MINOR) "." \
SCILEX_STRINGIZE(SCILEX_VERSION_PATCH)
#define SCILEX_VERSION_MINOR
Minor version (the calendar month).
Definition version.hpp:18
#define SCILEX_VERSION_MAJOR
Major version (the calendar year).
Definition version.hpp:16
#define SCILEX_STRINGIZE(x)
Stringizes the expansion of x — what the second level buys.
Definition version.hpp:24
#define SCILEX_VERSION_PATCH
Patch version (the release count within the month).
Definition version.hpp:20

The version as "MAJOR.MINOR.PATCH".