[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.2.3 support of LTR ?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 29 Oct 2014 09:39:47 -0200
> 2) I would like to build an integer only LUA and not supporting float / double types. I understand that in luaconf.h - we need to change the following line
> #define LUA_NUMBER double
>
> to
> #define LUA_NUMBER LUA_INTEGER
>
> Is there any other place required to accomplish the integer only LUA ?
Yes. You need to change LUA_NUMBER_SCAN LUA_NUMBER_FMT, lua_number2str,
lua_str2number, lua_strx2number, luai_nummod, luai_numpow, all in luaconf.h.