[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.3.0 (beta) now available
- From: Dirk Laurie <dirk.laurie@...>
- Date: Sun, 26 Oct 2014 08:12:52 +0200
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.