MCPcopy Create free account
hub / github.com/InoriRus/Kyty / script_global_dbg_dump_var

Function script_global_dbg_dump_var

source/lib/Scripts/src/Scripts.cpp:644–654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

642}
643
644void script_global_dbg_dump_var(const String& var_name)
645{
646 lua_init();
647
648 lua_getglobal(g_lua_state, var_name.C_Str());
649
650 ScriptVar r = ScriptVar::ReadVar(-1, false);
651 r.DbgPrint(0);
652
653 lua_pop(g_lua_state, 1);
654}
655
656ScriptVar GlobalGetVar(const String& var_name)
657{

Callers

nothing calls this directly

Calls 3

lua_initFunction · 0.85
lua_getglobalFunction · 0.85
DbgPrintMethod · 0.45

Tested by

no test coverage detected