Create a coroutine to run plans

This commit is contained in:
2021-02-17 13:38:22 -05:00
parent 210644da57
commit 213bf12425
8 changed files with 122 additions and 45 deletions

View File

@@ -194,6 +194,12 @@ void LuaStack::newtable(LuaSlot target) const {
lua_replace(L_, target);
}
lua_State *LuaStack::newthread(LuaSlot target) const {
lua_State *result = lua_newthread(L_);
lua_replace(L_, target);
return result;
}
void LuaStack::makeclass(LuaSlot classtab, LuaSlot classname) const {
checkstring(classname);