[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.3.0 (beta) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: Sat, 25 Oct 2014 16:20:13 -0200
> I am confused. 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.
You can define LUA_COMPAT_5_2 in luaconf.h to have it always on.
> I also fail to understand the manual which states, "Macros to project
> non-default integer types (luaL_checkint, luaL_optint, luaL_checklong,
> luaL_optlong) were deprecated. Use their equivalent over lua_Integer
> with a type cast (or, when possible, use lua_Integer in your code). "
>
> Use their equivalent what?
luaL_checkint -> (int)luaL_checkinteger
luaL_optint -> (int)luaL_optinteger
etc.
Is that your question?
-- Roberto