Files
Paradise/code/__DEFINES/callbacks.dm
Contrabang 19e1785eed Adds a macro for 0 wait timers as END_OF_TICK (#30309)
* Adds a macro for 0 wait timers as END_OF_TICK

* comment update
2025-09-04 07:09:08 +00:00

11 lines
447 B
Plaintext

#define GLOBAL_PROC "some_magic_bullshit"
#define CALLBACK new /datum/callback
#define INVOKE_ASYNC ImmediateInvokeAsync
/// like CALLBACK but specifically for verb callbacks
#define VERB_CALLBACK new /datum/callback/verb_callback
// This is used to delay a callback until the end of the tick or later, to ensure that some arbitrary specification is met first. (i.e. spawners spawning stuff)
#define END_OF_TICK(callback) addtimer(callback, 0)