add bitmanip functions to Lua script std table
This commit is contained in:
parent
f16937da5a
commit
79f3cc9639
@ -516,6 +516,13 @@ static void PushStd(lua_State* L) noexcept {
|
||||
}
|
||||
});
|
||||
lua_setfield(L, -2, "mvector");
|
||||
|
||||
|
||||
// ---- bit manip ----
|
||||
luaL_openlibs(L);
|
||||
luaL_loadstring(L, "return require(\"bit\")");
|
||||
lua_call(L, 0, 1);
|
||||
lua_setfield(L, -2, "bit");
|
||||
}
|
||||
lua_setfield(L, -2, "__index");
|
||||
lua_setmetatable(L, -2);
|
||||
|
Loading…
x
Reference in New Issue
Block a user