We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c0a57f commit 9d370b7Copy full SHA for 9d370b7
builtin/client/register.lua
@@ -4,6 +4,13 @@ core.callback_origins = {}
4
local getinfo = debug.getinfo
5
debug.getinfo = nil
6
7
+--- Runs given callbacks.
8
+--
9
+-- Note: this function is also called from C++
10
+-- @tparam table callbacks a table with registered callbacks, like `core.registered_on_*`
11
+-- @tparam number mode a RunCallbacksMode, as defined in src/script/common/c_internal.h
12
+-- @param ... arguments for the callback
13
+-- @return depends on mode
14
function core.run_callbacks(callbacks, mode, ...)
15
assert(type(callbacks) == "table")
16
local cb_len = #callbacks
0 commit comments