mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
nothing actually done
This commit is contained in:
parent
693f50eb87
commit
d3c9911640
4 changed files with 2 additions and 9 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue