API:GetLoadLuaDebugLibrary
From RoR Wiki
UI Lua API · Interface functions
Version: WAR 1.4.8
Returns the current value of the "load Lua debug library" setting.
enabled = GetLoadLuaDebugLibrary()
Arguments
None.
Returns
- enabled
boolean– The value last stored by SetLoadLuaDebugLibrary.
Details
- The value is a single flag held by the client. SetLoadLuaDebugLibrary writes it and this function reads it back.
- The stock UI checks it when
ea_uidebugtools/source/debug.lualoads. If it istrue,assertis wrapped to print a stack trace; otherwiseassertis replaced with an empty function.
Errors
None.
Example
From ea_uidebugtools/source/debug.lua:
if (GetLoadLuaDebugLibrary ())
then
luaAssert = assert
...
else
function assert () end
end
