summaryrefslogtreecommitdiff
path: root/include/global.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/global.h')
-rw-r--r--include/global.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/global.h b/include/global.h
index 2f31fa3d..88ca58ff 100644
--- a/include/global.h
+++ b/include/global.h
@@ -2,8 +2,13 @@
#define GUARD_GLOBAL_H
#include "config.h"
+
+#include "MWC_string.h"
#include "function_target.h"
#include "nitro.h"
+#include "constants/global.h"
+
+#define NELEMS(a) (sizeof(a) / sizeof(*(a)))
enum GameVersion {
VERSION_SAPPHIRE = 1,
@@ -27,4 +32,9 @@ enum GameLanguage {
extern void ErrorHandling(void);
+#define GF_ASSERT(expr) do {if (!(expr)) ErrorHandling();} while (0)
+
+extern const enum GameLanguage gGameLanguage;
+extern const enum GameVersion gGameVersion;
+
#endif //GUARD_GLOBAL_H