Skip to content

Commit

Permalink
Add the macros QT_VERSION and QT_VERSION_CHECK for simplified version…
Browse files Browse the repository at this point in the history
… checking

Fixes vsg-dev#1184
  • Loading branch information
rhabacker committed May 6, 2024
1 parent 90e8c78 commit ec6a78b
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_VERSION_CHECK(major, minor, patch) ((major<<16)|(minor<<8)|(patch))
#define VSG_VERSION VSG_VERSION_CHECK(VSG_VERSION_MAJOR, VSG_VERSION_MINOR, VSG_VERSION_PATCH)

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

Expand Down

0 comments on commit ec6a78b

Please sign in to comment.