mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
bit32 was deprecated, apparently. Lovely.
This commit is contained in:
parent
9872c67b4f
commit
062d2281d5
|
@ -107,14 +107,14 @@ public:
|
||||||
lua_pop(L, 1);
|
lua_pop(L, 1);
|
||||||
break;
|
break;
|
||||||
case lib::bit32:
|
case lib::bit32:
|
||||||
#if SOL_LUA_VERSION > 501
|
#ifdef SOL_LUAJIT
|
||||||
luaL_requiref(L, "bit32", luaopen_bit32, 1);
|
|
||||||
lua_pop(L, 1);
|
|
||||||
#elif defined(SOL_LUAJIT)
|
|
||||||
luaL_requiref(L, "bit32", luaopen_bit, 1);
|
luaL_requiref(L, "bit32", luaopen_bit, 1);
|
||||||
lua_pop(L, 1);
|
lua_pop(L, 1);
|
||||||
|
#elif SOL_LUA_VERSION == 502
|
||||||
|
luaL_requiref(L, "bit32", luaopen_bit32, 1);
|
||||||
|
lua_pop(L, 1);
|
||||||
#else
|
#else
|
||||||
#endif // Lua 5.2+ only
|
#endif // Lua 5.2 only (deprecated in 5.3 (503))
|
||||||
break;
|
break;
|
||||||
case lib::io:
|
case lib::io:
|
||||||
luaL_requiref(L, "io", luaopen_io, 1);
|
luaL_requiref(L, "io", luaopen_io, 1);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user