|
lua5.4
|
宏定义 | |
| #define | MAX_SIZET ((size_t)(~(size_t)0)) |
| #define | MAX_SIZE |
| #define | MAX_LUMEM ((lu_mem)(~(lu_mem)0)) |
| #define | MAX_LMEM ((l_mem)(MAX_LUMEM >> 1)) |
| #define | MAX_INT INT_MAX /* maximum value of an int */ |
| #define | log2maxs(t) (sizeof(t) * 8 - 2) |
| #define | ispow2(x) (((x) & ((x) - 1)) == 0) |
| #define | LL(x) (sizeof(x)/sizeof(char) - 1) |
| #define | point2uint(p) ((unsigned int)((size_t)(p) & UINT_MAX)) |
| #define | lua_assert(c) ((void)0) |
| #define | check_exp(c, e) (e) |
| #define | lua_longassert(c) ((void)0) |
| #define | luai_apicheck(l, e) ((void)l, 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_void(i) cast(void, (i)) |
| #define | cast_voidp(i) cast(void *, (i)) |
| #define | cast_num(i) cast(lua_Number, (i)) |
| #define | cast_int(i) cast(int, (i)) |
| #define | cast_uint(i) cast(unsigned int, (i)) |
| #define | cast_byte(i) cast(lu_byte, (i)) |
| #define | cast_uchar(i) cast(unsigned char, (i)) |
| #define | cast_char(i) cast(char, (i)) |
| #define | cast_charp(i) cast(char *, (i)) |
| #define | cast_sizet(i) cast(size_t, (i)) |
| #define | l_castS2U(i) ((lua_Unsigned)(i)) |
| #define | l_castU2S(i) ((lua_Integer)(i)) |
| #define | likely(x) (x) |
| #define | unlikely(x) (x) |
| #define | l_noret void |
| #define | LUAI_MAXSHORTLEN 40 |
| #define | MINSTRTABSIZE 128 |
| #define | STRCACHE_N 53 |
| #define | STRCACHE_M 2 |
| #define | LUA_MINBUFFER 32 |
| #define | LUAI_MAXCCALLS 200 |
| #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 | luai_numidiv(L, a, b) ((void)L, l_floor(luai_numdiv(L,a,b))) |
| #define | luai_numdiv(L, a, b) ((a)/(b)) |
| #define | luai_nummod(L, a, b, m) |
| #define | luai_numpow(L, a, b) ((void)L, (b == 2) ? (a)*(a) : l_mathop(pow)(a,b)) |
| #define | luai_numadd(L, a, b) ((a)+(b)) |
| #define | luai_numsub(L, a, b) ((a)-(b)) |
| #define | luai_nummul(L, a, b) ((a)*(b)) |
| #define | luai_numunm(L, a) (-(a)) |
| #define | luai_numeq(a, b) ((a)==(b)) |
| #define | luai_numlt(a, b) ((a)<(b)) |
| #define | luai_numle(a, b) ((a)<=(b)) |
| #define | luai_numgt(a, b) ((a)>(b)) |
| #define | luai_numge(a, b) ((a)>=(b)) |
| #define | luai_numisnan(a) (!luai_numeq((a), (a))) |
| #define | condmovestack(L, pre, pos) ((void)0) |
| #define | condchangemem(L, pre, pos) ((void)0) |
类型定义 | |
| typedef unsigned long | lu_mem |
| typedef long | l_mem |
| typedef unsigned char | lu_byte |
| typedef signed char | ls_byte |
| typedef LUAI_UACNUMBER | l_uacNumber |
| typedef LUAI_UACINT | l_uacInt |
| typedef unsigned long | l_uint32 |
| typedef l_uint32 | Instruction |
| #define api_check | ( | l, | |
| e, | |||
| msg | |||
| ) | luai_apicheck(l,(e) && msg) |
| #define cast | ( | t, | |
| exp | |||
| ) | ((t)(exp)) |
| #define cast_char | ( | i | ) | cast(char, (i)) |
| #define cast_charp | ( | i | ) | cast(char *, (i)) |
| #define cast_int | ( | i | ) | cast(int, (i)) |
| #define cast_num | ( | i | ) | cast(lua_Number, (i)) |
| #define cast_sizet | ( | i | ) | cast(size_t, (i)) |
| #define cast_uchar | ( | i | ) | cast(unsigned char, (i)) |
| #define cast_uint | ( | i | ) | cast(unsigned int, (i)) |
| #define cast_void | ( | i | ) | cast(void, (i)) |
| #define cast_voidp | ( | i | ) | cast(void *, (i)) |
| #define check_exp | ( | c, | |
| e | |||
| ) | (e) |
| #define condchangemem | ( | L, | |
| pre, | |||
| pos | |||
| ) | ((void)0) |
| #define condmovestack | ( | L, | |
| pre, | |||
| pos | |||
| ) | ((void)0) |
| #define ispow2 | ( | x | ) | (((x) & ((x) - 1)) == 0) |
| #define l_castS2U | ( | i | ) | ((lua_Unsigned)(i)) |
| #define l_castU2S | ( | i | ) | ((lua_Integer)(i)) |
| #define l_noret void |
| #define likely | ( | x | ) | (x) |
| #define LL | ( | x | ) | (sizeof(x)/sizeof(char) - 1) |
| #define log2maxs | ( | t | ) | (sizeof(t) * 8 - 2) |
| #define lua_assert | ( | c | ) | ((void)0) |
| #define lua_lock | ( | L | ) | ((void) 0) |
| #define lua_longassert | ( | c | ) | ((void)0) |
| #define LUA_MINBUFFER 32 |
| #define lua_unlock | ( | L | ) | ((void) 0) |
| #define luai_apicheck | ( | l, | |
| e | |||
| ) | ((void)l, lua_assert(e)) |
| #define LUAI_MAXCCALLS 200 |
| #define LUAI_MAXSHORTLEN 40 |
| #define luai_numadd | ( | L, | |
| a, | |||
| b | |||
| ) | ((a)+(b)) |
| #define luai_numdiv | ( | L, | |
| a, | |||
| b | |||
| ) | ((a)/(b)) |
| #define luai_numeq | ( | a, | |
| b | |||
| ) | ((a)==(b)) |
| #define luai_numge | ( | a, | |
| b | |||
| ) | ((a)>=(b)) |
| #define luai_numgt | ( | a, | |
| b | |||
| ) | ((a)>(b)) |
| #define luai_numidiv | ( | L, | |
| a, | |||
| b | |||
| ) | ((void)L, l_floor(luai_numdiv(L,a,b))) |
| #define luai_numisnan | ( | a | ) | (!luai_numeq((a), (a))) |
| #define luai_numle | ( | a, | |
| b | |||
| ) | ((a)<=(b)) |
| #define luai_numlt | ( | a, | |
| b | |||
| ) | ((a)<(b)) |
| #define luai_nummod | ( | L, | |
| a, | |||
| b, | |||
| m | |||
| ) |
| #define luai_nummul | ( | L, | |
| a, | |||
| b | |||
| ) | ((a)*(b)) |
| #define luai_numpow | ( | L, | |
| a, | |||
| b | |||
| ) | ((void)L, (b == 2) ? (a)*(a) : l_mathop(pow)(a,b)) |
| #define luai_numsub | ( | L, | |
| a, | |||
| b | |||
| ) | ((a)-(b)) |
| #define luai_numunm | ( | L, | |
| a | |||
| ) | (-(a)) |
| #define luai_threadyield | ( | L | ) | {lua_unlock(L); lua_lock(L);} |
| #define luai_userstateclose | ( | L | ) | ((void)L) |
| #define luai_userstatefree | ( | L, | |
| L1 | |||
| ) | ((void)L) |
| #define luai_userstateopen | ( | L | ) | ((void)L) |
| #define luai_userstateresume | ( | L, | |
| n | |||
| ) | ((void)L) |
| #define luai_userstatethread | ( | L, | |
| L1 | |||
| ) | ((void)L) |
| #define luai_userstateyield | ( | L, | |
| n | |||
| ) | ((void)L) |
| #define MAX_INT INT_MAX /* maximum value of an int */ |
| #define MAX_SIZE |
| #define MAX_SIZET ((size_t)(~(size_t)0)) |
| #define MINSTRTABSIZE 128 |
| #define point2uint | ( | p | ) | ((unsigned int)((size_t)(p) & UINT_MAX)) |
| #define STRCACHE_M 2 |
| #define STRCACHE_N 53 |
| #define unlikely | ( | x | ) | (x) |
| #define UNUSED | ( | x | ) | ((void)(x)) |
| typedef l_uint32 Instruction |
| typedef long l_mem |
| typedef LUAI_UACINT l_uacInt |
| typedef LUAI_UACNUMBER l_uacNumber |
| typedef unsigned long l_uint32 |
| typedef signed char ls_byte |
| typedef unsigned char lu_byte |
| typedef unsigned long lu_mem |
1.8.18