mirror of
https://github.com/zeldaret/tp
synced 2026-05-25 23:35:23 -04:00
800047a854
* OK __ct__15JKRThreadSwitchFP7JKRHeap * OK createManager__15JKRThreadSwitchFP7JKRHeap * OK enter__15JKRThreadSwitchFP9JKRThreadi * OK callback__15JKRThreadSwitchFP8OSThreadP8OSThread * OK draw__15JKRThreadSwitchFP14JKRThreadName_P10JUTConsole * OK draw__15JKRThreadSwitchFP14JKRThreadName_ * OK __dt__15JKRThreadSwitchFv * JKRThread.cpp cleanup * Fixed tp.py and libelf, changed JUT_ASSERT macro and removed unused .s files. * Changed JKRThread access specifiers Co-authored-by: Julgodis <>
37 lines
1.2 KiB
C
37 lines
1.2 KiB
C
#ifndef JUTASSERT_H
|
|
#define JUTASSERT_H
|
|
|
|
#include "dolphin/types.h"
|
|
|
|
#if DEBUG
|
|
#define JUT_ASSERT(FILE, LINE, COND) \
|
|
if (!COND) { \
|
|
JUTAssertion::showAssert(JUTAssertion::getSDevice(), FILE, LINE, #COND); \
|
|
OSPanic(FILE, LINE, "Halt"); \
|
|
}
|
|
|
|
#else
|
|
#define JUT_ASSERT(...)
|
|
#endif
|
|
|
|
#if DEBUG
|
|
#define JUT_PANIC(FILE, LINE, TEXT) \
|
|
JUTAssertion::showAssert(JUTAssertion::getSDevice(), FILE, LINE, TEXT); \
|
|
OSPanic(FILE, LINE, "Halt");
|
|
|
|
#else
|
|
#define JUT_PANIC(...)
|
|
#endif
|
|
|
|
// TODO: make it a namespace
|
|
struct JUTAssertion {
|
|
/* 802E495C */ static void create();
|
|
/* 802E4960 */ static void flush_subroutine();
|
|
/* 802E499C */ static void flushMessage();
|
|
/* 802E4A54 */ static void flushMessage_dbPrint();
|
|
/* 802E4C34 */ static void setVisible(bool);
|
|
/* 802E4C3C */ static void setMessageCount(int);
|
|
};
|
|
|
|
#endif /* JUTASSERT_H */
|