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...

Go to the source code of this file.

Macros

#define REAL_VERSION_MAJOR   2026
 Major version (the calendar year).
 
#define REAL_VERSION_MINOR   7
 Minor version (the calendar month).
 
#define REAL_VERSION_PATCH   25
 Patch version (the release count within the month).
 
#define REAL_STRINGIZE_IMPL(x)   #x
 
#define REAL_STRINGIZE(x)   REAL_STRINGIZE_IMPL(x)
 
#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.

Definition in file version.hpp.

Macro Definition Documentation

◆ REAL_STRINGIZE

#define REAL_STRINGIZE (   x)    REAL_STRINGIZE_IMPL(x)

Definition at line 47 of file version.hpp.

◆ REAL_STRINGIZE_IMPL

#define REAL_STRINGIZE_IMPL (   x)    #x

Definition at line 46 of file version.hpp.

◆ REAL_VERSION_MAJOR

#define REAL_VERSION_MAJOR   2026

Major version (the calendar year).

Definition at line 35 of file version.hpp.

◆ REAL_VERSION_MINOR

#define REAL_VERSION_MINOR   7

Minor version (the calendar month).

Definition at line 37 of file version.hpp.

◆ REAL_VERSION_PATCH

#define REAL_VERSION_PATCH   25

Patch version (the release count within the month).

Definition at line 39 of file version.hpp.

◆ 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)
Definition version.hpp:47

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

Definition at line 51 of file version.hpp.