REAL
Regular Expression Algorithmic Library — constexpr C++20 regex
Loading...
Searching...
No Matches
version.hpp File Reference

REAL's version macros and the C++20 language-standard guard. More...

Macros

#define REAL_VERSION_MAJOR   2026
 Major version (the calendar year).
 
#define REAL_VERSION_MINOR   8
 Minor version (the calendar month).
 
#define REAL_VERSION_PATCH   17
 Patch version (the release count within the month).
 
#define REAL_STRINGIZE_IMPL(x)   #x
 Inner half of the two-level stringize: turns its argument into a string literal.
 
#define REAL_STRINGIZE(x)   REAL_STRINGIZE_IMPL(x)
 Stringizes the expansion of x — what the second level buys.
 
#define REAL_VERSION_STRING
 The version as "MAJOR.MINOR.PATCH" — derived from the three numeric macros.
 

Detailed Description

REAL's version macros and the C++20 language-standard guard.

Zero dependency by design: only preprocessor #define / #error, never #include. Every public header includes this first, so the version macros are visible from any entry point (the umbrella real.hpp, the opt-in dfa.hpp, or any sub-header pulled in directly) and the standard guard is evaluated once per translation unit (the include guard deduplicates it). make release bumps the three numeric macros; REAL_VERSION_STRING is derived, never edited by hand.

Macro Definition Documentation

◆ REAL_VERSION_STRING

#define REAL_VERSION_STRING
Value:
REAL_STRINGIZE(REAL_VERSION_MINOR) "." \
REAL_STRINGIZE(REAL_VERSION_PATCH)
#define REAL_VERSION_MINOR
Minor version (the calendar month).
Definition version.hpp:37
#define REAL_VERSION_MAJOR
Major version (the calendar year).
Definition version.hpp:35
#define REAL_VERSION_PATCH
Patch version (the release count within the month).
Definition version.hpp:39
#define REAL_STRINGIZE(x)
Stringizes the expansion of x — what the second level buys.
Definition version.hpp:49

The version as "MAJOR.MINOR.PATCH" — derived from the three numeric macros.