40 #if !defined(l_signalT) 42 #define l_signalT sig_atomic_t 50 #define BASIC_STACK_SIZE (2*LUA_MINSTACK) 55 #define KGC_EMERGENCY 1 81 const Instruction *savedpc;
85 ptrdiff_t old_errfunc;
91 unsigned short callstatus;
98 #define CIST_OAH (1<<0) 99 #define CIST_LUA (1<<1) 100 #define CIST_HOOKED (1<<2) 101 #define CIST_FRESH (1<<3) 103 #define CIST_YPCALL (1<<4) 104 #define CIST_TAIL (1<<5) 105 #define CIST_HOOKYIELD (1<<6) 106 #define CIST_LEQ (1<<7) 107 #define CIST_FIN (1<<8) 109 #define isLua(ci) ((ci)->callstatus & CIST_LUA) 112 #define setoah(st,v) ((st) = ((st) & ~CIST_OAH) | (v)) 113 #define getoah(st) ((st) & CIST_OAH) 129 lu_byte currentwhite;
144 unsigned int gcfinnum;
149 const lua_Number *version;
152 struct Table *mt[LUA_NUMTAGS];
153 TString *strcache[STRCACHE_N][STRCACHE_M];
167 const Instruction *oldpc;
175 volatile lua_Hook hook;
181 unsigned short nCcalls;
187 #define G(L) (L->l_G) 204 #define cast_u(o) cast(union GCUnion *, (o)) 208 check_exp(novariant((o)->tt) == LUA_TSTRING, &((cast_u(o))->ts)) 209 #define gco2u(o) check_exp((o)->tt == LUA_TUSERDATA, &((cast_u(o))->u)) 210 #define gco2lcl(o) check_exp((o)->tt == LUA_TLCL, &((cast_u(o))->cl.l)) 211 #define gco2ccl(o) check_exp((o)->tt == LUA_TCCL, &((cast_u(o))->cl.c)) 213 check_exp(novariant((o)->tt) == LUA_TFUNCTION, &((cast_u(o))->cl)) 214 #define gco2t(o) check_exp((o)->tt == LUA_TTABLE, &((cast_u(o))->h)) 215 #define gco2p(o) check_exp((o)->tt == LUA_TPROTO, &((cast_u(o))->p)) 216 #define gco2th(o) check_exp((o)->tt == LUA_TTHREAD, &((cast_u(o))->th)) 221 check_exp(novariant((v)->tt) < LUA_TDEADKEY, (&(cast_u(v)->gc))) 225 #define gettotalbytes(g) cast(lu_mem, (g)->totalbytes + (g)->GCdebt) 227 LUAI_FUNC
void luaE_setdebt (
global_State *g, l_mem debt);
230 LUAI_FUNC
void luaE_freeCI (
lua_State *L);
231 LUAI_FUNC
void luaE_shrinkCI (
lua_State *L);
Definition: lobject.h:497
Definition: lobject.h:407
Definition: lobject.h:113
Definition: lobject.h:460
Definition: lobject.h:303
Definition: lobject.h:346