refactor lua_engine

This commit is contained in:
MihailRis
2024-10-05 17:32:03 +03:00
parent 736fdbf964
commit 756de7b0b1
2 changed files with 38 additions and 24 deletions
+7
View File
@@ -8,6 +8,11 @@
#include "lua_util.hpp"
namespace lua {
enum class StateType {
BASE,
GENERATOR,
};
void initialize();
void finalize();
@@ -17,4 +22,6 @@ namespace lua {
std::function<int(lua::State*)> args = [](auto*) { return 0; }
);
lua::State* get_main_thread();
void init_state(lua::State* L, StateType stateType);
}