lua-users home
lua-l archive

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


On 23 October 2014 07:13, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
All feedback welcome. Thanks.

In lvm.h:

    #define tonumber(o,n) \
(ttisfloat(o) ? (*(n) = fltvalue(o), 1) : luaV_tonumber_(o,n))

Yet `luaV_tonumber_` already handles this case.
We could probably get rid of the #define altogether and just use `luaV_tonumber_`.

I'm also wondering why we gained the "_" suffix.