| 102 | } |
| 103 | |
| 104 | void 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 | |
| 117 | ScriptError LoadString(const String& source) |
| 118 | { |
nothing calls this directly
no test coverage detected