diff options
author | Egor Ananyin <ananinegor@gmail.com> | 2020-06-20 09:18:43 +0300 |
---|---|---|
committer | Egor Ananyin <ananinegor@gmail.com> | 2020-06-20 09:18:43 +0300 |
commit | abd2d1e16494867989e710e5235c6425fa4e8c34 (patch) | |
tree | 7eff3e1db566801104a8fc2672bbe57e06f7009e /include/global.h | |
parent | 70556fc300ba85dad248d20b3c79c415e2ef88e5 (diff) | |
parent | 12c17948602bf14535c91c530f214b99863e038e (diff) |
conflicts
Diffstat (limited to 'include/global.h')
-rw-r--r-- | include/global.h | 10 |
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 |