lua-users home
lua-l archive

Please add macros for maximum and minimum values of lua_Integer & lua_Number

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


It would make it easier to write portable code for Lua if there were maxima and minima for the number types, say LUA_NUMBER_MAX, LUA_NUMBER_MIN &c. For a default configured system, one can of course use the limits for the default types, ptrdiff_t and double respectively, but that's not portable to systems using non-default types.
--
http://rrt.sc3d.org/
memoir, n. a lie that flatters the author's ego and the reader's intellect

AltStyle によって変換されたページ (->オリジナル) /