nothing actually done

This commit is contained in:
MihailRis
2024-05-18 03:49:34 +03:00
parent 693f50eb87
commit d3c9911640
4 changed files with 2 additions and 9 deletions
-7
View File
@@ -375,13 +375,6 @@ void lua::LuaState::openlib(const std::string& name, const luaL_Reg* libfuncs) {
lua_setglobal(L, name.c_str());
}
const std::string lua::LuaState::storeAnonymous() {
auto funcId = uintptr_t(lua_topointer(L, lua_gettop(L)));
auto funcName = "F$"+util::mangleid(funcId);
lua_setglobal(L, funcName.c_str());
return funcName;
}
std::shared_ptr<std::string> lua::LuaState::createLambdaHandler() {
auto ptr = reinterpret_cast<ptrdiff_t>(lua_topointer(L, -1));
auto name = util::mangleid(ptr);
-1
View File
@@ -75,7 +75,6 @@ namespace lua {
int createEnvironment(int parent);
void removeEnvironment(int id);
const std::string storeAnonymous();
bool emit_event(const std::string& name, std::function<int(lua::LuaState*)> args=[](auto*){return 0;});
void dumpStack();
lua_State* getLua() const;