mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Only push the Lua error handler once
This commit is contained in:
parent
1838a3fd69
commit
db4ea4658c
9 changed files with 154 additions and 279 deletions
|
@ -82,9 +82,12 @@ protected:
|
|||
void objectrefGet(u16 id);
|
||||
|
||||
JMutex m_luastackmutex;
|
||||
// Stack index of Lua error handler
|
||||
int m_errorhandler;
|
||||
#ifdef SCRIPTAPI_LOCK_DEBUG
|
||||
bool m_locked;
|
||||
#endif
|
||||
|
||||
private:
|
||||
lua_State* m_luastack;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue