Skip to content

Commit

Permalink
Partial revert of core/version.h changes in godotengine#88527
Browse files Browse the repository at this point in the history
I misunderstood what this does, we still use this code.
  • Loading branch information
akien-mga committed Feb 19, 2024
1 parent a92921a commit 0246230
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,13 @@
// forward-compatible.
// Example: "3.1"
#define VERSION_BRANCH _MKSTR(VERSION_MAJOR) "." _MKSTR(VERSION_MINOR)
#if VERSION_PATCH
// Example: "3.1.4"
#define VERSION_NUMBER VERSION_BRANCH "." _MKSTR(VERSION_PATCH)
#else // patch is 0, we don't include it in the "pretty" version number.
// Example: "3.1" instead of "3.1.0"
#define VERSION_NUMBER VERSION_BRANCH
#endif // VERSION_PATCH

// Version number encoded as hexadecimal int with one byte for each number,
// for easy comparison from code.
Expand Down

0 comments on commit 0246230

Please sign in to comment.