#include <limits.h>#include <stddef.h>#include "lua.h"#include <math.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 | LUAI_USER_ALIGNMENT_T union { double u; void *s; long l; } |
| #define | lua_assert(c) ((void)0) |
| #define | check_exp(c, e) (e) |
| #define | lua_longassert(c) ((void)0) |
| #define | luai_apicheck(L, e) lua_assert(e) |
| #define | api_check(l, e, msg) luai_apicheck(l,(e) && msg) |
| #define | UNUSED(x) ((void)(x)) |
| #define | cast(t, exp) ((t)(exp)) |
| #define | cast_byte(i) cast(lu_byte, (i)) |
| #define | cast_num(i) cast(lua_Number, (i)) |
| #define | cast_int(i) cast(int, (i)) |
| #define | cast_uchar(i) cast(unsigned char, (i)) |
| #define | l_noret void |
| #define | LUAI_MAXCCALLS 200 |
| #define | MAXUPVAL UCHAR_MAX |
| #define | MAXSTACK 250 |
| #define | MINSTRTABSIZE 32 |
| #define | LUA_MINBUFFER 32 |
| #define | lua_lock(L) ((void) 0) |
| #define | lua_unlock(L) ((void) 0) |
| #define | luai_threadyield(L) {lua_unlock(L); lua_lock(L);} |
| #define | luai_userstateopen(L) ((void)L) |
| #define | luai_userstateclose(L) ((void)L) |
| #define | luai_userstatethread(L, L1) ((void)L) |
| #define | luai_userstatefree(L, L1) ((void)L) |
| #define | luai_userstateresume(L, n) ((void)L) |
| #define | luai_userstateyield(L, n) ((void)L) |
| #define | lua_number2int(i, n) ((i)=(int)(n)) |
| #define | lua_number2integer(i, n) ((i)=(lua_Integer)(n)) |
| #define | SUPUNSIGNED ((lua_Number)(~(lua_Unsigned)0) + 1) |
| #define | lua_number2unsigned(i, n) ((i)=(lua_Unsigned)((n) - floor((n)/SUPUNSIGNED)*SUPUNSIGNED)) |
| #define | lua_unsigned2number(u) (((u) <= (lua_Unsigned)INT_MAX) ? (lua_Number)(int)(u) : (lua_Number)(u)) |
| #define | condmovestack(L) ((void)0) |
| #define | condchangemem(L) condmovestack(L) |
Typedefs | |
| typedef unsigned LUA_INT32 | 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, | ||||
| msg | ||||
| ) | luai_apicheck(l,(e) && msg) |
Definition at line 83 of file llimits.h.
Referenced by getupvalref(), index2addr(), lua_callk(), lua_compare(), lua_getinfo(), lua_getuservalue(), lua_next(), lua_pcallk(), lua_pushcclosure(), lua_rawget(), lua_rawgeti(), lua_rawgetp(), lua_rawset(), lua_rawseti(), lua_rawsetp(), lua_setmetatable(), lua_settop(), lua_setuservalue(), lua_upvalueid(), lua_xmove(), lua_yieldk(), and luaM_realloc_().
| #define cast | ( | t, | ||
| exp | ||||
| ) | ((t)(exp)) |
Definition at line 91 of file llimits.h.
Referenced by checkSizes(), f_call(), f_parser(), hashnum(), lua_arith(), lua_newstate(), lua_rawgetp(), lua_rawsetp(), lua_strx2number(), lua_topointer(), luaC_newobj(), luaH_free(), luaH_getint(), luaH_resize(), luaH_set(), luaH_setint(), luaK_posfix(), luaO_pushvfstring(), luaS_newlstr(), luaV_settable(), luaX_token2str(), new_localvar(), newlstr(), resume(), save(), setnodevector(), and unbound_search().
| #define cast_byte | ( | i | ) | cast(lu_byte, (i)) |
Definition at line 93 of file llimits.h.
Referenced by adjustlocalvars(), atomic(), lua_resume(), lua_sethook(), luaD_throw(), luaF_newCclosure(), luaF_newLclosure(), luaH_new(), luaK_checkstack(), luaT_gettm(), luaU_header(), luaX_init(), newupvalue(), parlist(), setnodevector(), and sweeplist().
| #define cast_int | ( | i | ) | cast(int, (i)) |
Definition at line 95 of file llimits.h.
Referenced by findindex(), lua_absindex(), lua_checkstack(), lua_gc(), lua_gettop(), luaD_growstack(), luaD_precall(), luaG_typeerror(), luaO_int2fb(), luaV_execute(), luaV_finishOp(), stackinuse(), and traversestack().
| #define cast_num | ( | i | ) | cast(lua_Number, (i)) |
Definition at line 94 of file llimits.h.
Referenced by addk(), arrayindex(), lua_pushinteger(), luaH_get(), luaH_getint(), luaH_next(), luaH_setint(), luaO_pushvfstring(), luaV_objlen(), and readhexa().
| #define cast_uchar | ( | i | ) | cast(unsigned char, (i)) |
Definition at line 96 of file llimits.h.
Referenced by lua_strx2number(), luaO_str2d(), luaZ_fill(), and readhexa().
| #define check_exp | ( | c, | ||
| e | ||||
| ) | (e) |
Definition at line 65 of file llimits.h.
Referenced by luaK_indexed(), and upvalname().
| #define condmovestack | ( | L | ) | ((void)0) |
Definition at line 289 of file llimits.h.
Referenced by luaD_shrinkstack().
| #define lua_assert | ( | c | ) | ((void)0) |
Definition at line 64 of file llimits.h.
Referenced by adjust_varargs(), anchor_token(), atomic(), close_func(), close_state(), closegoto(), codeextraarg(), codenot(), computesizes(), constructor(), currentpc(), discharge2reg(), enterblock(), exp1(), finishCcall(), fixjump(), freeobj(), freereg(), funcargs(), getlocvar(), hookf(), inclinenumber(), invertjump(), io_readline(), leaveblock(), lua_getinfo(), lua_resume(), lua_yieldk(), luaC_barrier_(), luaC_barrierback_(), luaC_barrierproto_(), luaC_checkupvalcolor(), luaC_freeallobjects(), luaC_fullgc(), luaD_hook(), luaD_precall(), luaD_reallocstack(), luaE_extendCI(), luaE_freethread(), luaF_close(), luaF_findupval(), luaG_concaterror(), luaH_newkey(), luaK_codeABC(), luaK_codeABx(), luaK_indexed(), luaK_patchclose(), luaK_patchlist(), luaK_posfix(), luaK_prefix(), luaK_setlist(), luaK_storevar(), luaM_realloc_(), luaO_arith(), luaS_resize(), luaT_gettm(), luaV_concat(), luaV_equalobj_(), luaV_execute(), luaV_finishOp(), luaX_lookahead(), luaX_token2str(), luaY_parser(), propagatelist(), propagatemark(), read_numeral(), reallymarkobject(), removeentry(), retstat(), runargs(), separatetobefnz(), singlestep(), singlevar(), skip_sep(), stackinuse(), statement(), tofile(), traverseclosure(), traversestrongtable(), traverseweakvalue(), udata2finalize(), and unlinkupval().
| #define lua_lock | ( | L | ) | ((void) 0) |
Definition at line 153 of file llimits.h.
Referenced by DumpBlock(), finishCcall(), lua_arith(), lua_atpanic(), lua_callk(), lua_checkstack(), lua_close(), lua_compare(), lua_concat(), lua_copy(), lua_createtable(), lua_dump(), lua_error(), lua_gc(), lua_getallocf(), lua_getfield(), lua_getglobal(), lua_getinfo(), lua_getlocal(), lua_getmetatable(), lua_getstack(), lua_gettable(), lua_getupvalue(), lua_getuservalue(), lua_insert(), lua_len(), lua_load(), lua_newthread(), lua_newuserdata(), lua_next(), lua_pcallk(), lua_pushboolean(), lua_pushcclosure(), lua_pushfstring(), lua_pushinteger(), lua_pushlightuserdata(), lua_pushlstring(), lua_pushnil(), lua_pushnumber(), lua_pushstring(), lua_pushthread(), lua_pushunsigned(), lua_pushvalue(), lua_pushvfstring(), lua_rawget(), lua_rawgeti(), lua_rawgetp(), lua_rawset(), lua_rawseti(), lua_rawsetp(), lua_remove(), lua_replace(), lua_resume(), lua_setallocf(), lua_setfield(), lua_setglobal(), lua_setlocal(), lua_setmetatable(), lua_settable(), lua_settop(), lua_setupvalue(), lua_setuservalue(), lua_tolstring(), lua_xmove(), lua_yieldk(), luaD_hook(), luaD_precall(), luaZ_fill(), pmain(), and resume().
| #define LUA_MINBUFFER 32 |
Definition at line 148 of file llimits.h.
Referenced by luaX_setinput(), and luaZ_openspace().
| #define lua_number2int | ( | i, | ||
| n | ||||
| ) | ((i)=(int)(n)) |
Definition at line 243 of file llimits.h.
Referenced by addk(), arrayindex(), and luaH_get().
| #define lua_number2integer | ( | i, | ||
| n | ||||
| ) | ((i)=(lua_Integer)(n)) |
Definition at line 247 of file llimits.h.
Referenced by lua_tointegerx().
| #define lua_number2unsigned | ( | i, | ||
| n | ||||
| ) | ((i)=(lua_Unsigned)((n) - floor((n)/SUPUNSIGNED)*SUPUNSIGNED)) |
Definition at line 255 of file llimits.h.
Referenced by lua_tounsignedx().
| #define lua_unlock | ( | L | ) | ((void) 0) |
Definition at line 154 of file llimits.h.
Referenced by DumpBlock(), finishCcall(), lua_arith(), lua_atpanic(), lua_callk(), lua_checkstack(), lua_compare(), lua_concat(), lua_copy(), lua_createtable(), lua_dump(), lua_error(), lua_gc(), lua_getallocf(), lua_getfield(), lua_getglobal(), lua_getinfo(), lua_getlocal(), lua_getmetatable(), lua_getstack(), lua_gettable(), lua_getupvalue(), lua_getuservalue(), lua_insert(), lua_len(), lua_load(), lua_newthread(), lua_newuserdata(), lua_next(), lua_pcallk(), lua_pushboolean(), lua_pushcclosure(), lua_pushfstring(), lua_pushinteger(), lua_pushlightuserdata(), lua_pushlstring(), lua_pushnil(), lua_pushnumber(), lua_pushstring(), lua_pushthread(), lua_pushunsigned(), lua_pushvalue(), lua_pushvfstring(), lua_rawget(), lua_rawgeti(), lua_rawgetp(), lua_rawset(), lua_rawseti(), lua_rawsetp(), lua_remove(), lua_replace(), lua_resume(), lua_setallocf(), lua_setfield(), lua_setglobal(), lua_setlocal(), lua_setmetatable(), lua_settable(), lua_settop(), lua_setupvalue(), lua_setuservalue(), lua_tolstring(), lua_xmove(), lua_yieldk(), luaD_hook(), luaD_precall(), luaD_throw(), luaZ_fill(), pmain(), and resume().
| #define lua_unsigned2number | ( | u | ) | (((u) <= (lua_Unsigned)INT_MAX) ? (lua_Number)(int)(u) : (lua_Number)(u)) |
Definition at line 266 of file llimits.h.
Referenced by lua_pushunsigned().
| #define LUAI_MAXCCALLS 200 |
Definition at line 117 of file llimits.h.
Referenced by assignment(), enterlevel(), luaD_call(), and resume().
| #define luai_threadyield | ( | L | ) | {lua_unlock(L); lua_lock(L);} |
| #define LUAI_USER_ALIGNMENT_T union { double u; void *s; long l; } |
| #define luai_userstateclose | ( | L | ) | ((void)L) |
Definition at line 172 of file llimits.h.
Referenced by lua_close().
| #define luai_userstatefree | ( | L, | ||
| L1 | ||||
| ) | ((void)L) |
Definition at line 180 of file llimits.h.
Referenced by luaE_freethread().
| #define luai_userstateopen | ( | L | ) | ((void)L) |
Definition at line 168 of file llimits.h.
Referenced by lua_newstate().
| #define luai_userstateresume | ( | L, | ||
| n | ||||
| ) | ((void)L) |
Definition at line 184 of file llimits.h.
Referenced by lua_resume().
| #define luai_userstatethread | ( | L, | ||
| L1 | ||||
| ) | ((void)L) |
Definition at line 176 of file llimits.h.
Referenced by lua_newthread().
| #define luai_userstateyield | ( | L, | ||
| n | ||||
| ) | ((void)L) |
Definition at line 188 of file llimits.h.
Referenced by lua_yieldk().
| #define MAX_INT (INT_MAX-2) |
Definition at line 35 of file llimits.h.
Referenced by inclinenumber(), listfield(), luaK_code(), new_localvar(), newlstr(), recfield(), and unbound_search().
| #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 136 of file llimits.h.
Referenced by luaK_checkstack().
| #define MAXUPVAL UCHAR_MAX |
Definition at line 124 of file llimits.h.
Referenced by index2addr(), lua_pushcclosure(), and newupvalue().
| #define MINSTRTABSIZE 32 |
Definition at line 142 of file llimits.h.
Referenced by f_luaopen().
| #define SUPUNSIGNED ((lua_Number)(~(lua_Unsigned)0) + 1) |
| #define UNUSED | ( | x | ) | ((void)(x)) |
Definition at line 87 of file llimits.h.
Referenced by dothecall(), f_luaopen(), lua_typename(), reader(), unroll(), and writer().
| typedef lu_int32 Instruction |
| typedef LUAI_UACNUMBER l_uacNumber |
| typedef LUAI_USER_ALIGNMENT_T L_Umaxalign |
| Generated by doxygen 1.7.1 on Fri May 25 2012 01:07:13 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |