22#define gt(L) (&L->l_gt)
25#define registry(L) (&G(L)->l_registry)
32#define BASIC_CI_SIZE 8
34#define BASIC_STACK_SIZE (2*LUA_MINSTACK)
59#define curr_func(L) (clvalue(L->ci->func))
60#define ci_func(ci) (clvalue((ci)->func))
61#define f_isLua(ci) (!ci_func(ci)->c.isC)
62#define isLua(ci) (ttisfunction((ci)->func) && f_isLua(ci))
149#define rawgco2ts(o) check_exp((o)->gch.tt == LUA_TSTRING, &((o)->ts))
150#define gco2ts(o) (&rawgco2ts(o)->tsv)
151#define rawgco2u(o) check_exp((o)->gch.tt == LUA_TUSERDATA, &((o)->u))
152#define gco2u(o) (&rawgco2u(o)->uv)
153#define gco2cl(o) check_exp((o)->gch.tt == LUA_TFUNCTION, &((o)->cl))
154#define gco2h(o) check_exp((o)->gch.tt == LUA_TTABLE, &((o)->h))
155#define gco2p(o) check_exp((o)->gch.tt == LUA_TPROTO, &((o)->p))
156#define gco2uv(o) check_exp((o)->gch.tt == LUA_TUPVAL, &((o)->uv))
158 check_exp((o) == NULL || (o)->gch.tt == LUA_TUPVAL, &((o)->uv))
159#define gco2th(o) check_exp((o)->gch.tt == LUA_TTHREAD, &((o)->th))
162#define obj2gco(v) (cast(GCObject *, (v)))
LUAI_FUNC void luaE_freethread(lua_State *L, lua_State *L1)
struct stringtable stringtable
LUAI_FUNC lua_State * luaE_newthread(lua_State *L)
struct global_State global_State
void *(* lua_Alloc)(void *ud, void *ptr, size_t osize, size_t nsize)
int(* lua_CFunction)(lua_State *L)
void(* lua_Hook)(lua_State *L, lua_Debug *ar)
const Instruction * savedpc
struct lua_State * mainthread
struct Table * mt[NUM_TAGS]
struct lua_longjmp * errorJmp
unsigned short baseCcalls
const Instruction * savedpc