49 #define BASIC_STACK_SIZE (2*LUA_MINSTACK)
54 #define KGC_EMERGENCY 1
94 #define CIST_LUA (1<<0)
95 #define CIST_HOOKED (1<<1)
96 #define CIST_REENTRY (1<<2)
98 #define CIST_YIELDED (1<<3)
99 #define CIST_YPCALL (1<<4)
100 #define CIST_STAT (1<<5)
101 #define CIST_TAIL (1<<6)
102 #define CIST_HOOKYIELD (1<<7)
105 #define isLua(ci) ((ci)->callstatus & CIST_LUA)
178 #define G(L) (L->l_G)
196 #define gch(o) (&(o)->gch)
199 #define rawgco2ts(o) \
200 check_exp(novariant((o)->gch.tt) == LUA_TSTRING, &((o)->ts))
201 #define gco2ts(o) (&rawgco2ts(o)->tsv)
202 #define rawgco2u(o) check_exp((o)->gch.tt == LUA_TUSERDATA, &((o)->u))
203 #define gco2u(o) (&rawgco2u(o)->uv)
204 #define gco2lcl(o) check_exp((o)->gch.tt == LUA_TLCL, &((o)->cl.l))
205 #define gco2ccl(o) check_exp((o)->gch.tt == LUA_TCCL, &((o)->cl.c))
207 check_exp(novariant((o)->gch.tt) == LUA_TFUNCTION, &((o)->cl))
208 #define gco2t(o) check_exp((o)->gch.tt == LUA_TTABLE, &((o)->h))
209 #define gco2p(o) check_exp((o)->gch.tt == LUA_TPROTO, &((o)->p))
210 #define gco2uv(o) check_exp((o)->gch.tt == LUA_TUPVAL, &((o)->uv))
211 #define gco2th(o) check_exp((o)->gch.tt == LUA_TTHREAD, &((o)->th))
214 #define obj2gco(v) (cast(GCObject *, (v)))
218 #define gettotalbytes(g) ((g)->totalbytes + (g)->GCdebt)
void *(* lua_Alloc)(void *ud, void *ptr, size_t osize, size_t nsize)
struct stringtable stringtable
void(* lua_Hook)(lua_State *L, lua_Debug *ar)
const Instruction * savedpc
unsigned LUA_INT32 lu_int32
int(* lua_CFunction)(lua_State *L)
const lua_Number * version
LUAI_FUNC void luaE_setdebt(global_State *g, l_mem debt)
LUAI_FUNC void luaE_freethread(lua_State *L, lua_State *L1)
struct CallInfo::@16::@18 c
struct lua_State * mainthread
LUAI_FUNC CallInfo * luaE_extendCI(lua_State *L)
struct Table * mt[LUA_NUMTAGS]
LUAI_FUNC void luaE_freeCI(lua_State *L)
GLfloat GLfloat GLfloat GLfloat h
struct global_State global_State
struct CallInfo::@16::@17 l
struct CallInfo * previous
const Instruction * oldpc
struct lua_longjmp * errorJmp