132 for (ci = L->
base_ci; ci <= L->
ci; ci++) {
213 for (; actual < nfixargs; ++actual)
215#if defined(LUA_COMPAT_VARARG)
217 int nvar = actual - nfixargs;
222 for (i=0; i<nvar; i++)
229 fixed = L->
top - actual;
231 for (i=0; i<nfixargs; i++) {
261 ((L->ci == L->end_ci) ? growCI(L) : \
262 (condhardstacktests(luaD_reallocCI(L, L->size_ci)), ++L->ci))
297 for (st = L->
top; st < ci->
top; st++)
333 ptrdiff_t fr =
savestack(L, firstResult);
352 L->
base = (ci - 1)->base;
353 L->
savedpc = (ci - 1)->savedpc;
355 for (i = wanted; i != 0 && firstResult < L->
top; i--)
422 return resume_error(L,
"cannot resume non-suspended coroutine");
448 luaG_runerror(L,
"attempt to yield across metamethod/C-call boundary");
457 ptrdiff_t old_top, ptrdiff_t ef) {
459 unsigned short oldnCcalls = L->
nCcalls;
460 ptrdiff_t old_ci =
saveci(L, L->
ci);
462 ptrdiff_t old_errfunc = L->
errfunc;
502 for (i = 0; i < tf->
nups; i++)
static int panic(lua_State *L)
void luaG_runerror(lua_State *L, const char *fmt,...)
void luaG_typeerror(lua_State *L, const TValue *o, const char *op)
static void f_parser(lua_State *L, void *ud)
static StkId adjust_varargs(lua_State *L, Proto *p, int actual)
int luaD_pcall(lua_State *L, Pfunc func, void *u, ptrdiff_t old_top, ptrdiff_t ef)
void luaD_seterrorobj(lua_State *L, int errcode, StkId oldtop)
static CallInfo * growCI(lua_State *L)
int luaD_protectedparser(lua_State *L, ZIO *z, const char *name)
int luaD_precall(lua_State *L, StkId func, int nresults)
void luaD_reallocCI(lua_State *L, int newsize)
static int resume_error(lua_State *L, const char *msg)
void luaD_call(lua_State *L, StkId func, int nResults)
static void restore_stack_limit(lua_State *L)
void luaD_growstack(lua_State *L, int n)
void luaD_throw(lua_State *L, int errcode)
LUA_API int lua_resume(lua_State *L, int nargs)
static void correctstack(lua_State *L, TValue *oldstack)
static StkId tryfuncTM(lua_State *L, StkId func)
static StkId callrethooks(lua_State *L, StkId firstResult)
int luaD_rawrunprotected(lua_State *L, Pfunc f, void *ud)
int luaD_poscall(lua_State *L, StkId firstResult)
static void resume(lua_State *L, void *ud)
void luaD_callhook(lua_State *L, int event, int line)
static void resetstack(lua_State *L, int status)
void luaD_reallocstack(lua_State *L, int newsize)
void(* Pfunc)(lua_State *L, void *ud)
#define restorestack(L, n)
#define luaD_checkstack(L, n)
UpVal * luaF_newupval(lua_State *L)
Closure * luaF_newLclosure(lua_State *L, int nelems, Table *e)
void luaF_close(lua_State *L, StkId level)
#define luaM_reallocvector(L, v, oldn, n, t)
#define setnvalue(obj, x)
#define setclvalue(L, obj, x)
#define sethvalue(L, obj, x)
#define luaS_newliteral(L, s)
TValue * luaH_setnum(lua_State *L, Table *t, int key)
Table * luaH_new(lua_State *L, int narray, int nhash)
TValue * luaH_setstr(lua_State *L, Table *t, TString *key)
const TValue * luaT_gettmbyobj(lua_State *L, const TValue *o, TMS event)
void(* lua_Hook)(lua_State *L, lua_Debug *ar)
#define LUAI_TRY(L, c, a)
#define luai_userstateyield(L, n)
#define luai_userstateresume(L, n)
Proto * luaU_undump(lua_State *L, ZIO *Z, Mbuffer *buff, const char *name)
void luaV_execute(lua_State *L, int nexeccalls)
int luaZ_lookahead(ZIO *z)
#define luaZ_initbuffer(L, buff)
#define luaZ_freebuffer(L, buff)
LUAI_FUNC Proto * luaY_parser(lua_State *L, ZIO *z, Mbuffer *buff, const char *name)
const Instruction * savedpc
struct lua_longjmp * errorJmp
unsigned short baseCcalls
const Instruction * savedpc
struct lua_longjmp * previous