mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-27 01:13:00 +00:00
safe_function: fix docblock docs
This commit is contained in:
parent
1ae48f3a52
commit
52c30a8dd1
1 changed files with 3 additions and 3 deletions
|
@ -66,9 +66,9 @@ end
|
||||||
-- WARNING: Do NOT nest `safe_function()` calls!!!
|
-- WARNING: Do NOT nest `safe_function()` calls!!!
|
||||||
-- @param fn function The function to call
|
-- @param fn function The function to call
|
||||||
-- @param args table The table of args to unpack and send to `fn` as arguments
|
-- @param args table The table of args to unpack and send to `fn` as arguments
|
||||||
-- @param string|nil player_name The name of the player affected. If nil then no message is sent to the player.
|
-- @param player_name string|nil The name of the player affected. If nil then no message is sent to the player.
|
||||||
-- @param string error_msg The error message to send when `fn` inevitably crashes.
|
-- @param error_msg string The error message to send when `fn` inevitably crashes.
|
||||||
-- @param string|nil cmdname Optional. The name of the command being run.
|
-- @param cmdname string|nil Optional. The name of the command being run.
|
||||||
-- @returns bool,any,... A success bool (true == success), and then if success == true the rest of the arguments are the (unpacked) return values from the function called. If success == false, then the 2nd argument will be the stack trace.
|
-- @returns bool,any,... A success bool (true == success), and then if success == true the rest of the arguments are the (unpacked) return values from the function called. If success == false, then the 2nd argument will be the stack trace.
|
||||||
local function safe_function(fn, args, player_name, error_msg, cmdname)
|
local function safe_function(fn, args, player_name, error_msg, cmdname)
|
||||||
local retvals
|
local retvals
|
||||||
|
|
Loading…
Reference in a new issue