lua_Integer(3type) Lua C API lua_Integer(3type)

lua_Integer

#include <lua.h>
typedef /* ... */ lua_Integer;

The type of integers in Lua.

By default this type is long long , (usually a 64-bit two-complement integer), but that can be changed to long or int (usually a 32-bit two-complement integer). (See LUA_INT_TYPE in luaconf.h

Lua also defines the constants LUA_MININTEGER and LUA_MAXINTEGER , with the minimum and the maximum values that fit in this type.

November 21, 2024