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

Function script_dbg_dump_stack

source/lib/Scripts/src/Scripts.cpp:104–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104void script_dbg_dump_stack(const String& prefix)
105{
106 lua_init();
107
108 printf("%s\n", prefix.C_Str());
109 int top = lua_gettop(g_lua_state);
110 for (int i = 1; i <= top; i++)
111 {
112 int t = lua_type(g_lua_state, i);
113 printf("%d: %s, n: %g\n", i, lua_typename(g_lua_state, t), lua_tonumber(g_lua_state, i));
114 }
115}
116
117ScriptError LoadString(const String& source)
118{

Callers

nothing calls this directly

Calls 5

lua_initFunction · 0.85
printfFunction · 0.85
lua_gettopFunction · 0.85
lua_typeFunction · 0.85
lua_typenameFunction · 0.85

Tested by

no test coverage detected