Files
Aurora.3/code/_helpers/dll_call.dm
Matt Atlas dd482c63af Update the codebase to 515. (#15553)
* 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>
2023-01-23 21:21:37 +01:00

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]")