lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2014-10-25 22:19 GMT+02:00 Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br>:
>> The default makefile defines LUA_COMPAT_5_2 which in turn
>> defines LUA_COMPAT_APIINTCASTS which in turn re-enables luaL_optint.
>> However when linking with the library, which is default compiled, it
>> errors due to luaL_optint being undefined.
>
> The default makefile defines LUA_COMPAT_5_2 so that it builds Lua 5.3
> with compatibility with 5.2 to avoid breaking exisiting code. The code
> in luaconf.h does not define LUA_COMPAT_5_2 on purpose, so that you get
> some warning if your code depends on deprecated features.

I.e. one should compile with -DLUA_COMPAT_5_2 if you need it.