Skip to content

Commit

Permalink
Add FR_API_VERSION macro constant to include/ferox.h
Browse files Browse the repository at this point in the history
  • Loading branch information
jdeokkim committed Nov 11, 2024
1 parent 3517485 commit d27f766
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions include/ferox.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,19 @@ extern "C" {

/* Macros =================================================================> */

/* The major, minor, and the patch release version of this library. */
#define FR_API_VERSION_MAJOR 0
#define FR_API_VERSION_MINOR 10
#define FR_API_VERSION_PATCH 0

/* The full version string of this library. */
#define FR_API_VERSION \
FR_API_STRINGIFY(FR_API_VERSION_MAJOR) "." \
FR_API_STRINGIFY(FR_API_VERSION_MINOR) "." \
FR_API_STRINGIFY(FR_API_VERSION_PATCH)

/* ========================================================================> */

/* Compiler-specific attribute for a function that must be inlined. */
#ifndef FR_API_INLINE
#ifdef _MSC_VER
Expand All @@ -94,6 +107,10 @@ extern "C" {
#endif
#endif // `FR_API_INLINE`

/* Converts the given value to a string literal. */
#define FR_API_STRINGIFY_(x) #x
#define FR_API_STRINGIFY(x) FR_API_STRINGIFY_(x)

/* ========================================================================> */

/* Empty-initializes the given object. */
Expand Down

0 comments on commit d27f766

Please sign in to comment.