wip debug / pal building, b_gm mostly done (#2285)

* b_gm mostly done

* wip debug / pal building

* fix configure.py

* fix some debug macros / flags
This commit is contained in:
TakaRikka
2025-01-16 19:37:39 +02:00
committed by GitHub
parent 2189777abf
commit 9948a6371f
1524 changed files with 202897 additions and 2955 deletions
+10
View File
@@ -3,6 +3,11 @@
#include "dolphin/types.h"
#define VERSION_GCN_USA 0
#define VERSION_GCN_PAL 1
#define VERSION_GCN_JPN 2
#define VERSION_SHIELD_DEBUG 3
#define ARRAY_SIZE(o) (sizeof((o)) / sizeof(*(o)))
// Align X to the previous N bytes (N must be power of two)
@@ -27,10 +32,15 @@
#ifdef __MWERKS__
#define GLUE(a, b) a##b
#define GLUE2(a, b) GLUE(a, b)
#if VERSION != VERSION_SHIELD_DEBUG
#define STATIC_ASSERT(cond) typedef char GLUE2(static_assertion_failed, __LINE__)[(cond) ? 1 : -1]
#else
#define STATIC_ASSERT(...)
#endif
#else
#define STATIC_ASSERT(...)
#endif
// hack to make functions that return comparisons as int match
extern int __cntlzw(unsigned int);