| 753 | } |
| 754 | |
| 755 | void LuaEngine::propagateErrorWithTraceback(lua_State* from, lua_State* to) { |
| 756 | if (const char* error = lua_tostring(from, -1)) { |
| 757 | luaL_traceback(to, from, error, 0); // error + traceback |
| 758 | lua_pop(from, 1); |
| 759 | } else { |
| 760 | lua_xmove(from, to, 1); // just error, no traceback |
| 761 | } |
| 762 | } |
| 763 | |
| 764 | char const* LuaEngine::stringPtr(int handleIndex) { |
| 765 | return lua_tostring(m_handleThread, handleIndex); |
nothing calls this directly
no test coverage detected