Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:GetLoadLuaDebugLibrary

From RoR Wiki
Revision as of 19:44, 16 October 2026 by Maintenance script (talk | contribs) (UI Lua API import (WAR 1.4.8))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.lua loads. If it is true, assert is wrapped to print a stack trace; otherwise assert is replaced with an empty function.

Errors

None.

Example

From ea_uidebugtools/source/debug.lua:

if (GetLoadLuaDebugLibrary ())
then
    luaAssert = assert
    ...
else
    function assert () end
end

See also