#include <limits.h>
#include <stddef.h>
#include "lua.h"
Go to the source code of this file.
Defines | |
#define | MAX_SIZET ((size_t)(~(size_t)0)-2) |
#define | MAX_LUMEM ((lu_mem)(~(lu_mem)0)-2) |
#define | MAX_INT (INT_MAX-2) |
#define | IntPoint(p) ((unsigned int)(lu_mem)(p)) |
#define | check_exp(c, e) (lua_assert(c), (e)) |
#define | api_check(l, e) lua_assert(e) |
#define | cast_byte(i) cast(lu_byte, (i)) |
#define | cast_num(i) cast(lua_Number, (i)) |
#define | cast_int(i) cast(int, (i)) |
#define | MAXSTACK 250 |
#define | condhardstacktests(x) ((void)0) |
Typedefs | |
typedef LUAI_UINT32 | lu_int32 |
typedef LUAI_UMEM | lu_mem |
typedef LUAI_MEM | l_mem |
typedef unsigned char | lu_byte |
typedef LUAI_USER_ALIGNMENT_T | L_Umaxalign |
typedef LUAI_UACNUMBER | l_uacNumber |
typedef lu_int32 | Instruction |
#define api_check | ( | l, | |||
e | ) | lua_assert(e) |
Definition at line 58 of file llimits.h.
Referenced by index2adr(), lua_next(), lua_rawget(), lua_rawgeti(), lua_rawset(), lua_rawseti(), lua_replace(), lua_setfenv(), lua_setmetatable(), lua_settop(), and lua_xmove().
Definition at line 78 of file llimits.h.
Referenced by adjustlocalvars(), atomic(), indexupvalue(), lua_resume(), lua_sethook(), luaD_throw(), luaF_newCclosure(), luaF_newLclosure(), luaH_new(), luaK_checkstack(), luaT_gettm(), luaX_init(), parlist(), setnodevector(), and traversetable().
Definition at line 80 of file llimits.h.
Referenced by addk(), checkstacksizes(), findindex(), lua_concat(), lua_gc(), lua_getstack(), lua_gettop(), luaD_callhook(), luaD_precall(), luaG_typeerror(), luaO_int2fb(), luaO_pushvfstring(), luaS_resize(), luaV_execute(), restore_stack_limit(), and resume().
#define cast_num | ( | i | ) | cast(lua_Number, (i)) |
Definition at line 79 of file llimits.h.
Referenced by addk(), adjust_varargs(), arrayindex(), lua_pushinteger(), luaH_get(), luaH_getnum(), luaH_next(), luaH_setnum(), luaO_pushvfstring(), luaO_str2d(), and luaV_execute().
#define condhardstacktests | ( | x | ) | ((void)0) |
Definition at line 123 of file llimits.h.
Referenced by checkstacksizes().
#define MAX_INT (INT_MAX-2) |
Definition at line 35 of file llimits.h.
Referenced by inclinenumber(), indexupvalue(), listfield(), luaK_code(), newlstr(), recfield(), and unbound_search().
Definition at line 32 of file llimits.h.
Referenced by lua_gc(), and luaC_step().
#define MAX_SIZET ((size_t)(~(size_t)0)-2) |
Definition at line 30 of file llimits.h.
Referenced by luaS_newudata(), luaV_concat(), newlstr(), and save().
#define MAXSTACK 250 |
Definition at line 93 of file llimits.h.
Referenced by luaK_checkstack(), and precheck().
typedef lu_int32 Instruction |
typedef LUAI_UACNUMBER l_uacNumber |
typedef LUAI_USER_ALIGNMENT_T L_Umaxalign |