lua-users home
lua-l archive

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


Hi,

> #define lua_absindex(L,n) ((n) < 0 ? lua_gettop(L) + (n) + 1 : (n))

better not do it like this, you're bound to say lua_absindex(L, ++x) sooner
or later...
I suggest to make it a function instead.

Bye,
Wim