Files
Fluffy ca6b04e1d7 Updated SSgarbage (#18173)
* pain

* sadfas

* sdfa

* sdfasf

* sfa

* sdf

* might the lord have mercy on our soul

* i cri everidai

* adeste fideles

* sdf

* where will this lead, what's coming next, from your inventions

* dear lord

* gjvhk

* i cri everidai

* fsgf

* sdfa

* sdaf

* hiuhi
2024-01-15 14:08:27 +00:00

15 lines
360 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
. = call_ext(dll, func)(arglist(calling_arguments))
if (world.timeofday - start > 10 SECONDS)
crash_with("DLL call took longer than 10 seconds: [func]")