mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 18:02:57 +00:00
31 lines
719 B
Plaintext
31 lines
719 B
Plaintext
//#define EXTOOLS_LOGGING // rust_g is used as a fallback if this is undefined
|
|
|
|
/proc/extools_log_write()
|
|
|
|
/proc/extools_finalize_logging()
|
|
|
|
/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;\
|
|
}\
|