Skip to content

Commit

Permalink
Added VSG_API_VERSION_LESS and VSG_API_VERSION_GREATER_EQUAL macros t…
Browse files Browse the repository at this point in the history
…o help with version conditional code paths
  • Loading branch information
robertosfield committed May 7, 2024
1 parent 90e8c78 commit 43e8be8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vsg/core/Version.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ extern "C"
#define VSG_VERSION_STRING "@VSG_VERSION_MAJOR@.@VSG_VERSION_MINOR@.@VSG_VERSION_PATCH@"
#define VSG_SOVERSION_STRING "@VSG_SOVERSION@"

#define VSG_API_VERSION_LESS(major, minor, patch) ((VSG_VERSION_MAJOR < major) || ((VSG_VERSION_MAJOR == major) && ((VSG_VERSION_MINOR < minor) || ((VSG_VERSION_MINOR==minor) && VSG_VERSION_PATCH < patch))))
#define VSG_API_VERSION_GREATER_EQUAL(major, minor, patch) ((VSG_VERSION_MAJOR > major) || ((VSG_VERSION_MAJOR == major) && ((VSG_VERSION_MINOR > minor) || ((VSG_VERSION_MINOR==minor) && VSG_VERSION_PATCH >= patch))))

/// maximum number of logical vkDevice supported
#define VSG_MAX_DEVICES @VSG_MAX_DEVICES@

Expand Down

0 comments on commit 43e8be8

Please sign in to comment.