Create a coroutine to run plans
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user