pokediamond/include/global.h
2024-09-30 18:18:30 +01:00

30 lines
590 B
C

#ifndef GUARD_GLOBAL_H
#define GUARD_GLOBAL_H
#include "nitro/types.h"
#include <string.h>
#include "constants/global.h"
#include "NNS_G3D_res_struct.h" //todo: add to nnsys.h
#include "config.h"
#include "error_handling.h"
#include "function_target.h"
#define NELEMS(a) (sizeof(a) / sizeof(*(a)))
#define GF_ASSERT(expr) \
do { \
if (!(expr)) \
GF_AssertFail(); \
} while (0)
#ifndef IN_MAIN_C
extern const u8 gGameLanguage;
extern const u8 gGameVersion;
#endif // IN_MAIN_C
#include "code16.h"
#endif // GUARD_GLOBAL_H