MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / pcallWithTraceback

Method pcallWithTraceback

source/core/StarLua.cpp:712–719  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

710}
711
712int LuaEngine::pcallWithTraceback(lua_State* state, int nargs, int nresults) {
713 int msghPosition = lua_gettop(state) - nargs;
714 lua_rawgeti(m_state, LUA_REGISTRYINDEX, m_pcallTracebackMessageHandlerRegistryId);
715 lua_insert(state, msghPosition);
716 int ret = lua_pcall(state, nargs, nresults, msghPosition);
717 lua_remove(state, msghPosition);
718 return ret;
719}
720
721int LuaEngine::coresumeWithTraceback(lua_State* state) {
722 lua_State* co = lua_tothread(state, 1);

Callers

nothing calls this directly

Calls 2

lua_gettopFunction · 0.85
lua_rawgetiFunction · 0.85

Tested by

no test coverage detected