This commit is contained in:
iceman1001 committed 2024-09-30 10:36:29 +02:00
1 parent c3591b9692
commit 71c86f4b21
68 files changed
+18938 -18741

No files matched your search

+17 -17
View File
@@ -183,23 +183,23 @@ static int b_replace(lua_State *L) {
void register_bit32_lib(lua_State *L) {
static const luaL_Reg bitlib[] = {
{"arshift", b_arshift},
{"band", b_and},
{"bnot", b_not},
{"bor", b_or},
{"bxor", b_xor},
{"btest", b_test},
{"extract", b_extract},
{"lrotate", b_lrot},
{"lshift", b_lshift},
{"replace", b_replace},
{"rrotate", b_rrot},
{"rshift", b_rshift},
{NULL, NULL}
};
static const luaL_Reg bitlib[] = {
{"arshift", b_arshift},
{"band", b_and},
{"bnot", b_not},
{"bor", b_or},
{"bxor", b_xor},
{"btest", b_test},
{"extract", b_extract},
{"lrotate", b_lrot},
{"lshift", b_lshift},
{"replace", b_replace},
{"rrotate", b_rrot},
{"rshift", b_rshift},
{NULL, NULL}
};
luaL_newlib(L, bitlib);
lua_setfield(L, -2, "bit32");
luaL_newlib(L, bitlib);
lua_setfield(L, -2, "bit32");
}