lua-users home
lua-l archive

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


> it seems that a MAX macro for LUA_UNSIGNED is not #defined in luaconf.h
> so that i had to use ULLONG_MAX from <limits.h> directly instead.

you could also use

lua_Unsigned umax = ~ 0 ;

to determine this upper maximum.
this has the advantage that you do not need to know what C integer type
is actually used as Lua integer type.