mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2025-12-10 00:01:25 +00:00
* files * obj * mass ports * ah * wack * that * todo refactor ui intieract calls jfc * all * test case * compile * compile * auxtools time * wack * debugger hook * I LOVE YOU SPACEMANIAC THE DEBUGGER JUST SAVED MY LIFE
25 lines
578 B
Plaintext
25 lines
578 B
Plaintext
/proc/auxtools_stack_trace(msg)
|
|
CRASH(msg)
|
|
|
|
GLOBAL_LIST_EMPTY(auxtools_initialized)
|
|
|
|
#define AUXTOOLS_CHECK(LIB)\
|
|
if (!GLOB.auxtools_initialized[LIB]) {\
|
|
if (fexists(LIB)) {\
|
|
var/string = call(LIB,"auxtools_init")();\
|
|
if(findtext(string, "SUCCESS")) {\
|
|
GLOB.auxtools_initialized[LIB] = TRUE;\
|
|
} else {\
|
|
CRASH(string);\
|
|
}\
|
|
} else {\
|
|
CRASH("No file named [LIB] found!")\
|
|
}\
|
|
}\
|
|
|
|
#define AUXTOOLS_SHUTDOWN(LIB)\
|
|
if (GLOB.auxtools_initialized[LIB] && fexists(LIB)){\
|
|
call(LIB,"auxtools_shutdown")();\
|
|
GLOB.auxtools_initialized[LIB] = FALSE;\
|
|
}\
|