Refactor code in world-core that spawns threads

This commit is contained in:
2024-02-27 17:01:26 -05:00
parent aaedf9e3f0
commit 2b426eefeb
6 changed files with 112 additions and 111 deletions

View File

@@ -664,6 +664,8 @@ public:
template<class... SS>
LuaExtStack(const LuaCoreStack &LS0, SS & ... stackslots) : LuaCoreStack(LS0.state(), stackslots...) {}
int oldtop() const { return oldtop_; }
~LuaExtStack() {
if (!lua_isthrowing(L_)) {
lua_settop(L_, oldtop_);