diff options
author | Jademalo <386846+Jademalo@users.noreply.github.com> | 2021-10-23 10:10:00 +0100 |
---|---|---|
committer | Jademalo <386846+Jademalo@users.noreply.github.com> | 2021-10-23 10:10:00 +0100 |
commit | 62436d9f67224e9df691c89222884146bd24263d (patch) | |
tree | 25f5a7bff12d61f7d50434c297981e7dc6e89a1e /berry_fix/payload/include | |
parent | eb860a368e974860db6b3e56b57e2eff186e4470 (diff) |
IDE support formatting and consistency
Diffstat (limited to 'berry_fix/payload/include')
-rw-r--r-- | berry_fix/payload/include/global.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/berry_fix/payload/include/global.h b/berry_fix/payload/include/global.h index 46828630d..4bea138d6 100644 --- a/berry_fix/payload/include/global.h +++ b/berry_fix/payload/include/global.h @@ -6,16 +6,17 @@ // global.h from pokemon ruby // IDE support -#if defined (__APPLE__) || defined (__CYGWIN__) || defined (__INTELLISENSE__) -#define _(x) x -#define __(x) x -#define INCBIN(x) {0} -#define INCBIN_U8 INCBIN -#define INCBIN_U16 INCBIN -#define INCBIN_U32 INCBIN -#define INCBIN_S8 INCBIN -#define INCBIN_S16 INCBIN -#define INCBIN_S32 INCBIN +#if defined(__APPLE__) || defined(__CYGWIN__) || defined(__INTELLISENSE__) +// We define these when using certain IDEs to fool preproc +#define _(x) (x) +#define __(x) (x) +#define INCBIN(...) {0} +#define INCBIN_U8 INCBIN +#define INCBIN_U16 INCBIN +#define INCBIN_U32 INCBIN +#define INCBIN_S8 INCBIN +#define INCBIN_S16 INCBIN +#define INCBIN_S32 INCBIN #endif // IDE support // Prevent cross-jump optimization. |