mirror of
https://github.com/pret/pmd-red.git
synced 2024-11-30 08:20:41 +00:00
d988394595
* more data dumping and some code cleaning * split out cutscene scripts * initial start at script conversion * more script work * use correct type * clearer up struct field names * split known scripts into seperate files * no need to preproc pure ascii strings in debug * more cutscene work * split out personality test scripts * solidify text macros and doc some dungeon fields * more scripting work
36 lines
865 B
C
36 lines
865 B
C
#ifndef GUARD_GLOBAL_H
|
|
#define GUARD_GLOBAL_H
|
|
|
|
#include <string.h>
|
|
#include "config.h" // We need to define config before gba headers as print stuff needs the functions nulled before defines.
|
|
#include "gba/gba.h"
|
|
|
|
#include "constants/global.h"
|
|
#include "constants/species.h"
|
|
|
|
// IDE support
|
|
#if defined(__APPLE__) || defined(__CYGWIN__)
|
|
#define _(x) x
|
|
#define __(x) x
|
|
#define INCBIN_U8 {0}
|
|
#define INCBIN_U16 {0}
|
|
#define INCBIN_U32 {0}
|
|
#define INCBIN_S8 {0}
|
|
#define INCBIN_S16 {0}
|
|
#define INCBIN_S32 {0}
|
|
#endif
|
|
|
|
// Prevent cross-jump optimization.
|
|
#define BLOCK_CROSS_JUMP asm("");
|
|
|
|
// to help in decompiling
|
|
#define asm_comment(x) asm volatile("@ -- " x " -- ")
|
|
|
|
#define asm_unified(x) asm(".syntax unified\n" x "\n.syntax divided\n")
|
|
|
|
#define NAKED __attribute__((naked))
|
|
|
|
#define ARRAY_COUNT(array) (sizeof(array) / sizeof((array)[0]))
|
|
|
|
#endif // GUARD_GLOBAL_H
|