JKRThread & JKRThreadSwitch (#147)

* 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 <>
This commit is contained in:
Jonathan Wase
2021-09-24 11:13:23 -04:00
committed by GitHub
co-authored by Julgodis <>
parent 7d271be857
commit 800047a854
22 changed files with 335 additions and 606 deletions
+20
View File
@@ -3,6 +3,26 @@
#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();