fix bad 0.9.16 version check in config loading; helpers for building version codes, so they can be compared

This commit is contained in:
Ryan Fleury
2025-05-09 09:48:54 -07:00
parent bbdbcead16
commit dd3f3366a8
4 changed files with 51 additions and 2 deletions
+8
View File
@@ -65,6 +65,14 @@
# define C_LINKAGE
#endif
////////////////////////////////
//~ rjf: Versions
#define Version(major, minor, patch) (U64)((((U64)(major) & 0xffff) << 32) | ((((U64)(minor) & 0xffff) << 16)) | ((((U64)(patch) & 0xffff) << 0)))
#define MajorFromVersion(version) (((version) & 0xffff00000000ull) >> 32)
#define MinorFromVersion(version) (((version) & 0x0000ffff0000ull) >> 16)
#define PatchFromVersion(version) (((version) & 0x00000000ffffull) >> 0)
////////////////////////////////
//~ rjf: Units