MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / get_lua_traceback

Function get_lua_traceback

ogsr_engine/COMMON_AI/script_engine.cpp:28–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26{1}";
27
28static const char* get_lua_traceback(lua_State* L)
29{
30 luaL_traceback(L, L, nullptr, 0);
31 auto tb = lua_tostring(L, -1);
32 lua_pop(L, 1);
33 return tb;
34}
35
36CScriptEngine::~CScriptEngine()
37{

Callers 2

print_stackMethod · 0.70
print_outputMethod · 0.70

Calls 1

luaL_tracebackFunction · 0.85

Tested by

no test coverage detected