Home
last modified time | relevance | path

Searched refs:lua_assert (Results 1 – 25 of 26) sorted by relevance

12

/external/lua/src/
Dlgc.c134 lua_assert(u->nuvalue > 0); in getgclist()
137 default: lua_assert(0); return 0; in getgclist()
149 lua_assert(!isgray(o)); /* cannot be in a gray list */ in linkgclist_()
173 lua_assert(isempty(gval(n))); in clearkey()
211 lua_assert(isblack(o) && iswhite(v) && !isdead(g, v) && !isdead(g, o)); in luaC_barrier_()
215 lua_assert(!isold(v)); /* white object could not be old */ in luaC_barrier_()
220 lua_assert(issweepphase(g)); in luaC_barrier_()
233 lua_assert(isblack(o) && !isdead(g, o)); in luaC_barrierback_()
234 lua_assert((g->gckind == KGC_GEN) == (isold(o) && getage(o) != G_TOUCHED1)); in luaC_barrierback_()
246 lua_assert(g->allgc == o); /* object must be 1st in 'allgc' list! */ in luaC_fix()
[all …]
Dlcode.c74 lua_assert(e->k == VCONST); in const2val()
169 lua_assert(dest != NO_JUMP); in fixjump()
172 lua_assert(GET_OPCODE(*jmp) == OP_JMP); in fixjump()
306 lua_assert(target <= fs->pc); in luaK_patchlist()
369 lua_assert(f->abslineinfo[fs->nabslineinfo - 1].pc == pc); in removelastlineinfo()
406 lua_assert(getOpMode(o) == iABC); in luaK_codeABCk()
407 lua_assert(a <= MAXARG_A && b <= MAXARG_B && in luaK_codeABCk()
417 lua_assert(getOpMode(o) == iABx); in luaK_codeABx()
418 lua_assert(a <= MAXARG_A && bc <= MAXARG_Bx); in luaK_codeABx()
428 lua_assert(getOpMode(o) == iAsBx); in luaK_codeAsBx()
[all …]
Dllimits.h93 #define lua_assert(c) assert(c) macro
96 #if defined(lua_assert)
97 #define check_exp(c,e) (lua_assert(c), (e))
99 #define lua_longassert(c) ((c) ? (void)0 : lua_assert(0))
101 #define lua_assert(c) ((void)0) macro
110 #define luai_apicheck(l,e) ((void)l, lua_assert(e))
Dlmem.c95 lua_assert(nelems + 1 <= size && size <= limit); in luaM_growaux_()
115 lua_assert(newsize <= oldsize); in luaM_shrinkvector_()
134 lua_assert((osize == 0) == (block == NULL)); in luaM_free_()
165 lua_assert((osize == 0) == (block == NULL)); in luaM_realloc_()
173 lua_assert((nsize == 0) == (newblock == NULL)); in luaM_realloc_()
Dldo.c188 lua_assert(newsize <= LUAI_MAXSTACK || newsize == ERRORSTACKSIZE); in luaD_reallocstack()
189 lua_assert(L->stack_last - L->stack == L->stacksize - EXTRA_STACK); in luaD_reallocstack()
241 lua_assert(lim <= L->stack_last); in stackinuse()
299 lua_assert(!L->allowhook); in luaD_hook()
444 lua_assert(ci->top <= L->stack_last); in luaD_pretailcall()
475 lua_assert(ci->top <= L->stack_last); in luaD_call()
503 lua_assert(ci->top <= L->stack_last); in luaD_call()
538 lua_assert(ci->u.c.k != NULL && yieldable(L)); in finishCcall()
540 lua_assert((ci->callstatus & CIST_YPCALL) || status == LUA_YIELD); in finishCcall()
644 lua_assert(L->status == LUA_YIELD); in resume()
[all …]
Dlfunc.c91 lua_assert(isintwups(L) || L->openupval == NULL); in luaF_findupval()
93 lua_assert(!isdead(G(L), p)); in luaF_findupval()
196 lua_assert(L->openupval == NULL || uplevel(L->openupval) < level); in luaF_newtbcupval()
204 lua_assert(status == LUA_ERRMEM); in luaF_newtbcupval()
216 lua_assert(upisopen(uv)); in luaF_unlinkupval()
227 lua_assert(uplevel(uv) < L->top); in luaF_close()
Dlualib.h53 #if !defined(lua_assert)
54 #define lua_assert(x) ((void)0) macro
Dlstate.c78 lua_assert(p == sizeof(buff)); in luai_makeseed()
91 lua_assert(tb > 0); in luaE_setdebt()
158 lua_assert(L->ci->next == NULL); in luaE_extendCI()
161 lua_assert(L->ci->next == NULL); in luaE_extendCI()
242 lua_assert(L->nci == 0); in freestack()
316 lua_assert(gettotalbytes(g) == sizeof(LG)); in close_state()
356 lua_assert(L1->openupval == NULL); in luaE_freethread()
Dlobject.c68 default: lua_assert(0); return 0; in intarith()
84 default: lua_assert(0); return 0; in numarith()
325 lua_assert(x <= 0x7FFFFFFFu); in luaO_utf8esc()
357 lua_assert(ttisnumber(obj)); in tostringbuff()
429 lua_assert(buff->blen <= BUFVFS); lua_assert(sz <= BUFVFS); in getbuff()
534 lua_assert(buff.pushed == 1); in luaO_pushvfstring()
Dllex.c155 lua_assert(currIsNewline(ls)); in inclinenumber()
202 lua_assert(set[2] == '\0'); in check_next2()
228 lua_assert(lisdigit(ls->current)); in read_numeral()
249 lua_assert(ttisfloat(&obj)); in read_numeral()
264 lua_assert(s == '[' || s == ']'); in skip_sep()
573 lua_assert(ls->lookahead.token == TK_EOS); in luaX_lookahead()
Dlvm.c91 lua_assert(obj != result); in l_strton()
293 lua_assert(!ttistable(t)); in luaV_finishget()
300 lua_assert(isempty(slot)); in luaV_finishget()
337 lua_assert(isempty(slot)); /* slot must be empty */ in luaV_finishset()
480 lua_assert(ttisnumber(l) && ttisnumber(r)); in LTnum()
502 lua_assert(ttisnumber(l) && ttisnumber(r)); in LEnum()
524 lua_assert(!ttisnumber(l) || !ttisnumber(r)); in lessthanothers()
546 lua_assert(!ttisnumber(l) || !ttisnumber(r)); in lessequalothers()
834 lua_assert(GET_OPCODE(*ci->u.l.savedpc) == OP_JMP); in luaV_finishOp()
850 lua_assert(op == OP_TFORCALL || op == OP_CALL || in luaV_finishOp()
[all …]
Dltable.c119 lua_assert(luai_numisnan(n) || l_mathop(fabs)(n) == cast_num(HUGE_VAL)); in l_hashfloat()
224 lua_assert(ispow2(size) && size/2 < t->alimit && t->alimit < size); in luaH_realasize()
363 lua_assert((optimal == 0 || optimal / 2 < na) && na <= optimal); in computesizes()
645 lua_assert(!isdummy(t)); in luaH_newkey()
663 else lua_assert(gnext(f) == 0); in luaH_newkey()
670 lua_assert(isempty(gval(mp))); in luaH_newkey()
713 lua_assert(key->tt == LUA_VSHRSTR); in luaH_getshortstr()
904 lua_assert(limit == luaH_realasize(t) && in luaH_getn()
Dlparser.c257 lua_assert(idx < fs->ndebugvars); in localdebuginfo()
371 lua_assert(eqstr(name, getlocalvardesc(prev, v->u.var.vidx)->vd.name)); in newupvalue()
377 lua_assert(eqstr(name, prev->f->upvalues[v->u.info].name)); in newupvalue()
459 lua_assert(var->k != VVOID); /* this one must exist */ in singlevar()
521 lua_assert(eqstr(gt->name, label->name)); in solvegoto()
641 lua_assert(fs->freereg == luaY_nvarstack(fs)); in enterblock()
673 lua_assert(bl->nactvar == fs->nactvar); in leaveblock()
752 lua_assert(fs->bl == NULL); in close_func()
930 lua_assert(cc.v.k == VVOID || cc.tostore > 0); in constructor()
1045 lua_assert(f->k == VNONRELOC); in funcargs()
[all …]
Dlstring.c46 lua_assert(a->tt == LUA_VLNGSTR && b->tt == LUA_VLNGSTR); in luaS_eqlngstr()
63 lua_assert(ts->tt == LUA_VLNGSTR); in luaS_hashlongstr()
206 lua_assert(str != NULL); /* otherwise 'memcmp'/'memcpy' are undefined */ in internshrstr()
Dlmathlib.c390 lua_assert(n > 0 && n < 32); in Ishl()
420 lua_assert(n > 0 && n < 32); in rotl()
427 lua_assert(n > 32 && n < 64); in rotl1()
546 lua_assert((lim & (lim + 1)) == 0 /* 'lim + 1' is a power of 2, */ in project()
Dlua.c306 lua_assert(argv[i][0] == '-'); /* already checked */ in runargs()
312 lua_assert(extra != NULL); in runargs()
528 lua_assert(lua_gettop(L) == 1); in loadline()
Dltm.c62 lua_assert(event <= TM_EQ); in luaT_gettm()
253 lua_assert(L->top <= ci->top && ci->top <= L->stack_last); in luaT_adjustvarargs()
Dldebug.c44 lua_assert(isLua(ci)); in currentpc()
94 lua_assert(f->lineinfo[basepc] != ABSLINEINFO); in luaG_getfuncline()
402 lua_assert(ttisfunction(func)); in lua_getinfo()
757 lua_assert(ttisfunction(s2v(errfunc))); in luaG_errormsg()
Dlundump.c185 default: lua_assert(0); in loadConstants()
329 lua_assert(cl->nupvalues == cl->p->sizeupvalues); in luaU_undump()
Dlobject.h117 checkliveness(L,io1); lua_assert(!isnonstrictnil(io1)); }
318 { TValue *io=(obj); lua_assert(ttisfloat(io)); val_(io).n=(x); }
324 { TValue *io=(obj); lua_assert(ttisinteger(io)); val_(io).i=(x); }
Dliolib.c185 lua_assert(p->f); in tofile()
634 lua_assert(n > 0); /* should return at least a nil */ in io_readline()
Dldump.c128 lua_assert(tt == LUA_VNIL || tt == LUA_VFALSE || tt == LUA_VTRUE); in dumpConstants()
Dltablib.c335 lua_assert(lo + r4 <= p && p <= up - r4); in choosePivot()
Dldblib.c324 lua_assert(lua_getinfo(L, "lS", ar)); in hookf()
Dlstrlib.c766 lua_assert(ms->matchdepth == MAXCCALLS); in reprepstate()
1047 lua_assert(n < sz); in num2straux()
1309 lua_assert(nb < maxitem); in str_format()

12