mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-02-04 18:30:07 +01:00
commit
65fb468151
@ -6,17 +6,18 @@
|
|||||||
// global.h from pokemon ruby
|
// global.h from pokemon ruby
|
||||||
|
|
||||||
// IDE support
|
// IDE support
|
||||||
#if defined(__APPLE__) || defined(__CYGWIN__)
|
#if defined(__APPLE__) || defined(__CYGWIN__) || defined(__INTELLISENSE__)
|
||||||
#define _(x) x
|
// We define these when using certain IDEs to fool preproc
|
||||||
#define __(x) x
|
#define _(x) (x)
|
||||||
#define INCBIN(x) {0}
|
#define __(x) (x)
|
||||||
#define INCBIN_U8 INCBIN
|
#define INCBIN(...) {0}
|
||||||
#define INCBIN_U16 INCBIN
|
#define INCBIN_U8 INCBIN
|
||||||
#define INCBIN_U32 INCBIN
|
#define INCBIN_U16 INCBIN
|
||||||
#define INCBIN_S8 INCBIN
|
#define INCBIN_U32 INCBIN
|
||||||
#define INCBIN_S16 INCBIN
|
#define INCBIN_S8 INCBIN
|
||||||
#define INCBIN_S32 INCBIN
|
#define INCBIN_S16 INCBIN
|
||||||
#endif
|
#define INCBIN_S32 INCBIN
|
||||||
|
#endif // IDE support
|
||||||
|
|
||||||
// Prevent cross-jump optimization.
|
// Prevent cross-jump optimization.
|
||||||
#define BLOCK_CROSS_JUMP asm("");
|
#define BLOCK_CROSS_JUMP asm("");
|
||||||
|
@ -19,19 +19,18 @@
|
|||||||
#define asm_unified(x) asm(".syntax unified\n" x "\n.syntax divided")
|
#define asm_unified(x) asm(".syntax unified\n" x "\n.syntax divided")
|
||||||
#define NAKED __attribute__((naked))
|
#define NAKED __attribute__((naked))
|
||||||
|
|
||||||
// IDE support
|
/// IDE support
|
||||||
#if defined (__APPLE__) || defined (__CYGWIN__) || defined (_MSC_VER)
|
#if defined(__APPLE__) || defined(__CYGWIN__) || defined(__INTELLISENSE__)
|
||||||
#define _(x) x
|
// We define these when using certain IDEs to fool preproc
|
||||||
#define __(x) x
|
#define _(x) (x)
|
||||||
|
#define __(x) (x)
|
||||||
// Fool CLion IDE
|
#define INCBIN(...) {0}
|
||||||
#define INCBIN(x) {0}
|
#define INCBIN_U8 INCBIN
|
||||||
#define INCBIN_U8 INCBIN
|
#define INCBIN_U16 INCBIN
|
||||||
#define INCBIN_U16 INCBIN
|
#define INCBIN_U32 INCBIN
|
||||||
#define INCBIN_U32 INCBIN
|
#define INCBIN_S8 INCBIN
|
||||||
#define INCBIN_S8 INCBIN
|
#define INCBIN_S16 INCBIN
|
||||||
#define INCBIN_S16 INCBIN
|
#define INCBIN_S32 INCBIN
|
||||||
#define INCBIN_S32 INCBIN
|
|
||||||
#endif // IDE support
|
#endif // IDE support
|
||||||
|
|
||||||
#define ARRAY_COUNT(array) (size_t)(sizeof(array) / sizeof((array)[0]))
|
#define ARRAY_COUNT(array) (size_t)(sizeof(array) / sizeof((array)[0]))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user