[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: [bug?] LUA_COMPAT_BITLIB can not enable separately
- From: Xavier Wang <weasley.wx@...>
- Date: Tue, 10 Nov 2015 15:08:33 +0800
Hi List,
We use Lua 5.3.1 in our project's server, but in client we use UniLua
which compatible with Lua 5.2.
After we use bit32 library, we found that to define LUA_COMPAT_BITLIB
cause compile error: bit32 library use luaL_checkunsigned, which is
already deprecated already. to use it, we should also define
LUA_COMPAT_APIINTCASTS.
So, it's needed to remove use of luaL_checkunsigned, or define
LUA_COMPAT_APIINTCASTS when luaconf.h found LUA_COMPAT_BITLIB defined?
--
regards,
Xavier Wang.