CookMem 1.4.0
A C++ memory context / allocator
Loading...
Searching...
No Matches
version.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define COOKMEM_VERSION_MAJOR   1
 
#define COOKMEM_VERSION_MINOR   4
 
#define COOKMEM_VERSION_PATCH   0
 
#define COOKMEM_VERSION    (COOKMEM_VERSION_MAJOR * 10000 + COOKMEM_VERSION_MINOR * 100 + COOKMEM_VERSION_PATCH)
 
#define COOKMEM_VERSION_STRING
 

Detailed Description

The version of CookMem.

This is the only place where the version number is defined. CMakeLists.txt reads COOKMEM_VERSION_MAJOR, COOKMEM_VERSION_MINOR and COOKMEM_VERSION_PATCH from this file, so keep each of them on its own line in the form "#define COOKMEM_VERSION_XXX number".

Macro Definition Documentation

◆ COOKMEM_VERSION

#define COOKMEM_VERSION    (COOKMEM_VERSION_MAJOR * 10000 + COOKMEM_VERSION_MINOR * 100 + COOKMEM_VERSION_PATCH)

The version as a single number, MAJOR * 10000 + MINOR * 100 + PATCH, so that it can be compared in preprocessor conditions. For example, version 1.2.3 is 10203.

#if COOKMEM_VERSION >= 10000
// code that requires CookMem 1.0 or later
#endif

◆ COOKMEM_VERSION_MAJOR

#define COOKMEM_VERSION_MAJOR   1

The major version number.

◆ COOKMEM_VERSION_MINOR

#define COOKMEM_VERSION_MINOR   4

The minor version number. Must be less than 100.

◆ COOKMEM_VERSION_PATCH

#define COOKMEM_VERSION_PATCH   0

The patch version number. Must be less than 100.

◆ COOKMEM_VERSION_STRING

#define COOKMEM_VERSION_STRING
Value:
COOKMEM_VERSION_STRINGIZE(COOKMEM_VERSION_MAJOR) "." \
COOKMEM_VERSION_STRINGIZE(COOKMEM_VERSION_MINOR) "." \
COOKMEM_VERSION_STRINGIZE(COOKMEM_VERSION_PATCH)
#define COOKMEM_VERSION_MAJOR
Definition version.h:29
#define COOKMEM_VERSION_PATCH
Definition version.h:33
#define COOKMEM_VERSION_MINOR
Definition version.h:31

The version as a string in the form "MAJOR.MINOR.PATCH", such as "1.2.3".