summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-10-23 09:42:36 -0400
committerGitHub <noreply@github.com>2021-10-23 09:42:36 -0400
commit1e04b7c9e8473ed56907425f4feb32c7ef019289 (patch)
tree7786c25d2e744cd82adafa187b6d12322853159a
parent87db09596ad9295adbc29adc974bef22d536b2c7 (diff)
parent9ed24500acf517b3ab0138817875e96757e0032c (diff)
Merge pull request #839 from Jademalo/ide-support
Improve IDE Support
-rw-r--r--include/global.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/include/global.h b/include/global.h
index 3a26a2c3e..78d63bb78 100644
--- a/include/global.h
+++ b/include/global.h
@@ -9,17 +9,18 @@
#include "constants/global.h"
// IDE support
-#if defined(__APPLE__) || defined(__CYGWIN__)
-#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
-#endif
+#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
// For debug menu translations.
// DTR("こんにちは", "Hello") will expand to "Hello" with DEBUG_FIX,