libisdn
version.h File Reference

Go to the source code of this file.

Defines

#define LIBISDN_VERSION(maj, min, patch)   (((maj) << 24) | ((min) << 16) | ((patch) << 8) | 0U)
#define LIBISDN_FEATURE(x)   (defined(LIBISDN_FEATURE_##x) && (LIBISDN_FEATURE_##x == 1))
#define LIBISDN_PLATFORM(x)   (defined(LIBISDN_PLATFORM_##x) && (LIBISDN_PLATFORM_##x == 1))
#define LIBISDN_COMPILER(x)   (defined(LIBISDN_COMPILER_##x) && (LIBISDN_COMPILER_##x == 1))
#define LIBISDN_VERSION_MAJOR   0
#define LIBISDN_VERSION_MINOR   0
#define LIBISDN_VERSION_PATCH   1
#define LIBISDN_PLATFORM_LINUX   1
#define LIBISDN_PLATFORM_STRING   "LINUX"
#define LIBISDN_COMPILER_GNU   1
#define LIBISDN_COMPILER_STRING   "GNU"
#define LIBISDN_VERSION_INT   LIBISDN_VERSION(LIBISDN_VERSION_MAJOR, LIBISDN_VERSION_MINOR, LIBISDN_VERSION_PATCH)
#define LIBISDN_VERSION_STRING   "0.0.1"
#define LIBISDN_FEATURE_API2   1

Define Documentation

#define LIBISDN_COMPILER (   x)    (defined(LIBISDN_COMPILER_##x) && (LIBISDN_COMPILER_##x == 1))

platform macro

 // Example
 #if LIBISDN_COMPILER(GNU)
    ... do something that only works on GNU (gcc) ...
 #endif

Definition at line 58 of file version.h.

#define LIBISDN_COMPILER_GNU   1

Definition at line 80 of file version.h.

#define LIBISDN_COMPILER_STRING   "GNU"

Definition at line 81 of file version.h.

#define LIBISDN_FEATURE (   x)    (defined(LIBISDN_FEATURE_##x) && (LIBISDN_FEATURE_##x == 1))

feature check macro

 // Example
 #if LIBISDN_FEATURE(LUA)
    ... do something that requires lua in libisdn ...
 #endif

Definition at line 31 of file version.h.

#define LIBISDN_FEATURE_API2   1

Definition at line 91 of file version.h.

#define LIBISDN_PLATFORM (   x)    (defined(LIBISDN_PLATFORM_##x) && (LIBISDN_PLATFORM_##x == 1))

platform macro

 // Example
 #if LIBISDN_PLATFORM(WIN32)
    ... do something that only works on WIN32 ...
 #endif

Definition at line 44 of file version.h.

#define LIBISDN_PLATFORM_LINUX   1

Definition at line 71 of file version.h.

#define LIBISDN_PLATFORM_STRING   "LINUX"

Definition at line 72 of file version.h.

#define LIBISDN_VERSION (   maj,
  min,
  patch 
)    (((maj) << 24) | ((min) << 16) | ((patch) << 8) | 0U)

version convert macro

 // Example
 #if LIBISDN_VERSION_INT >= LIBISDN_VERSION(1,0,0)
    ... do something that requires at least libisdn-1.0.0 ...
 #endif

Definition at line 18 of file version.h.

#define LIBISDN_VERSION_MAJOR   0

Definition at line 66 of file version.h.

#define LIBISDN_VERSION_MINOR   0

Definition at line 67 of file version.h.

#define LIBISDN_VERSION_PATCH   1

Definition at line 68 of file version.h.

#define LIBISDN_VERSION_STRING   "0.0.1"

Definition at line 87 of file version.h.