Add defaults for GIT_HASH and GIT_DIRTY

This commit is contained in:
Rickey Fehr
2025-09-23 21:41:55 -07:00
parent ebe789aa52
commit 56bbc2ff9a
2 changed files with 10 additions and 2 deletions
+9 -1
View File
@@ -1,7 +1,15 @@
#ifndef VERSION_H
#define VERSION_H
#ifndef GIT_HASH
#define GIT_HASH "undef"
#endif
#ifndef GIT_DIRTY
#define GIT_DIRTY "-dirty"
#endif
__attribute__((used))
const char gba_version[] = "GBA_VERSION:" GIT_HASH GIT_DIRTY;
const char balatro_version[] = "GBALATRO_VERSION:" GIT_HASH GIT_DIRTY;
#endif // VERSION_H