| 710 | } |
| 711 | |
| 712 | int 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 | |
| 721 | int LuaEngine::coresumeWithTraceback(lua_State* state) { |
| 722 | lua_State* co = lua_tothread(state, 1); |
nothing calls this directly
no test coverage detected