mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-20 04:17:33 +01:00
ca6b04e1d7
* 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
15 lines
360 B
Plaintext
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]")
|