mirror of
https://github.com/encounter/tp.git
synced 2026-07-11 06:18:46 -07:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user