mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Clean up/improve some scriptapi error handling code
This commit is contained in:
@@ -128,8 +128,11 @@ protected:
|
||||
lua_State* getStack()
|
||||
{ return m_luastack; }
|
||||
|
||||
// Checks that stack size is sane
|
||||
void realityCheck();
|
||||
// Takes an error from lua_pcall and throws it as a LuaError
|
||||
void scriptError(int result, const char *fxn);
|
||||
// Dumps stack contents for debugging
|
||||
void stackDump(std::ostream &o);
|
||||
|
||||
void setGameDef(IGameDef* gamedef) { m_gamedef = gamedef; }
|
||||
|
Reference in New Issue
Block a user