This commit is contained in:
2024-11-07 23:12:37 +01:00
parent a67a1d8f40
commit f7c91862a0
3089 changed files with 18209 additions and 0 deletions

8
Meta/api/pcall.lua Normal file
View File

@@ -0,0 +1,8 @@
---@diagnostic disable: missing-return, lowercase-global
---@param f function
---@param ... list
---@return boolean status
---@return list or string ...
---Executes a function in protected mode. When running a function in protected mode, any errors do not propagate beyond the function (i.e. they do not stop all execution and call the default error handler).
function pcall(f, ...) end