mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-09 03:59:34 -04: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:
@@ -119,6 +119,8 @@ private:
|
||||
/* 0x6D4 */ JAISoundParamsMove mParams;
|
||||
}; // Size: 0x724
|
||||
|
||||
#if VERSION != VERSION_SHIELD_DEBUG
|
||||
STATIC_ASSERT(sizeof(JAISeMgr) == 0x724);
|
||||
#endif
|
||||
|
||||
#endif /* JAISEMGR_H */
|
||||
|
||||
@@ -277,7 +277,7 @@ public:
|
||||
}
|
||||
|
||||
void data_setInterval(f64 f) {
|
||||
ASSERT(f > TValue(0));
|
||||
// ASSERT(f > TValue(0));
|
||||
_50 = f;
|
||||
}
|
||||
|
||||
|
||||
@@ -4,18 +4,8 @@
|
||||
#include "dolphin/os.h"
|
||||
|
||||
#ifdef DEBUG
|
||||
#define JUT_ASSERT(LINE, COND) \
|
||||
if ((COND) == 0) { \
|
||||
JUTAssertion::showAssert(JUTAssertion::getSDevice(), __FILE__, LINE, #COND); \
|
||||
OSPanic(__FILE__, LINE, "Halt"); \
|
||||
}
|
||||
|
||||
#define JUT_ASSERT_REPORT(LINE, COND) \
|
||||
if ((COND) == 0) { \
|
||||
JUTAssertion::showAssert(JUTAssertion::getSDevice(), __FILE__, LINE, #COND); \
|
||||
OSPanic(__FILE__, LINE, "Halt"); \
|
||||
OSReport("[%s] %d\n", __FILE__, __LINE__); \
|
||||
}
|
||||
#define JUT_ASSERT(LINE, COND) \
|
||||
(COND) ? (void)0 : (JUTAssertion::showAssert(JUTAssertion::getSDevice(), __FILE__, LINE, #COND), OSPanic(__FILE__, LINE, "Halt"));
|
||||
|
||||
#define JUT_PANIC(LINE, TEXT) \
|
||||
JUTAssertion::showAssert(JUTAssertion::getSDevice(), __FILE__, LINE, TEXT); \
|
||||
@@ -32,7 +22,6 @@
|
||||
|
||||
#else
|
||||
#define JUT_ASSERT(...)
|
||||
#define JUT_ASSERT_REPORT(...)
|
||||
#define JUT_PANIC(...)
|
||||
#define JUT_WARN(...)
|
||||
#define JUT_LOG(...)
|
||||
|
||||
Reference in New Issue
Block a user