mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-22 16:12:19 +00:00
* Update the codebase to 515. * edit that * WHOOPS * maor * maybe works * libcall and shit * do that too * remove that * auxtools isnt updated so get rid of it * actually remove auxtools lol Co-authored-by: Matt Atlas <liermattia@gmail.com>
14 lines
355 B
Plaintext
14 lines
355 B
Plaintext
|
|
/** A function to wrap calls to DLLs for debugging purposes.
|
|
*/
|
|
/proc/dll_call(dll, func, ...)
|
|
|
|
var/start = world.timeofday
|
|
|
|
var/list/calling_arguments = length(args) > 2 ? args.Copy(3) : null
|
|
|
|
. = LIBCALL(dll, func)(arglist(calling_arguments))
|
|
|
|
if (world.timeofday - start > 10 SECONDS)
|
|
crash_with("DLL call took longer than 10 seconds: [func]")
|