/netbsd/external/mit/lua/dist/src/ |
H A D | lgc.c | 137 lua_assert(u->nuvalue > 0); in getgclist() 175 lua_assert(isempty(gval(n))); in clearkey() 222 lua_assert(issweepphase(g)); in luaC_barrier_() 434 lua_assert(isblack(o)); in genlink() 458 lua_assert(!keyisnil(n)); in traverseweakvalue() 536 lua_assert(!keyisnil(n)); in traversestrongtable() 813 default: lua_assert(0); in freeobj() 889 lua_assert(tofinalize(o)); in udata2finalize() 912 lua_assert(!g->gcemergency); in GCTM() 1064 lua_assert(estimate > 0); in setpause() [all …]
|
H A D | lcode.c | 81 lua_assert(e->k == VCONST); in const2val() 176 lua_assert(dest != NO_JUMP); in fixjump() 313 lua_assert(target <= fs->pc); in luaK_patchlist() 447 lua_assert(a <= MAXARG_Ax); in codeextraarg() 725 default: lua_assert(0); in const2exp() 751 lua_assert(e->k == VKSTR); in str2K() 1308 lua_assert(!hasjumps(t) && 1393 lua_assert(baser <= opr && 1659 default: lua_assert(0); 1713 default: lua_assert(0); [all …]
|
H A D | llimits.h | 112 #define lua_assert(c) assert(c) macro 115 #if defined(lua_assert) 116 #define check_exp(c,e) (lua_assert(c), (e)) 118 #define lua_longassert(c) ((c) ? (void)0 : lua_assert(0)) 120 #define lua_assert(c) ((void)0) macro 129 #define luai_apicheck(l,e) ((void)l, lua_assert(e))
|
H A D | lmem.c | 117 lua_assert(nelems + 1 <= size && size <= limit); in luaM_growaux_() 137 lua_assert(newsize <= oldsize); in luaM_shrinkvector_() 156 lua_assert((osize == 0) == (block == NULL)); in luaM_free_() 183 lua_assert((osize == 0) == (block == NULL)); in luaM_realloc_() 190 lua_assert((nsize == 0) == (newblock == NULL)); in luaM_realloc_()
|
H A D | ldo.c | 252 lua_assert(stacksize(L) == ERRORSTACKSIZE); in luaD_growstack() 287 lua_assert(lim <= L->stack_last.p + EXTRA_STACK); in stackinuse() 359 lua_assert(!L->allowhook); in luaD_hook() 496 lua_assert(!(ci->callstatus & in luaD_poscall() 527 lua_assert(ci->top.p <= L->stack_last.p); in precallC() 568 lua_assert(ci->top.p <= L->stack_last.p); in luaD_pretailcall() 612 lua_assert(ci->top.p <= L->stack_last.p); in luaD_precall() 715 lua_assert(hastocloseCfunc(ci->nresults)); in finishCcall() 722 lua_assert(ci->u.c.k != NULL && yieldable(L)); in finishCcall() 796 lua_assert(L->status == LUA_YIELD); in resume() [all …]
|
H A D | lfunc.c | 94 lua_assert(isintwups(L) || L->openupval == NULL); in luaF_findupval() 96 lua_assert(!isdead(G(L), p)); in luaF_findupval() 173 lua_assert(level > L->tbclist.p); in luaF_newtbcupval() 187 lua_assert(upisopen(uv)); in luaF_unlinkupval() 202 lua_assert(uplevel(uv) < L->top.p); in luaF_closeupval() 219 lua_assert(tbc->tbclist.delta > 0); /* first element cannot be dummy */ in poptbclist()
|
H A D | llex.c | 166 lua_assert(currIsNewline(ls)); in inclinenumber() 213 lua_assert(set[2] == '\0'); in check_next2() 240 lua_assert(lisdigit(ls->current)); in read_numeral() 261 lua_assert(ttisfloat(&obj)); in read_numeral() 272 lua_assert(lisdigit(ls->current)); in read_numeral() 284 lua_assert(ttisinteger(&obj)); in read_numeral() 299 lua_assert(s == '[' || s == ']'); in skip_sep() 612 lua_assert(ls->lookahead.token == TK_EOS); in luaX_lookahead()
|
H A D | lvm.c | 99 lua_assert(obj != result); in l_strton() 318 lua_assert(!ttistable(t)); 325 lua_assert(isempty(slot)); 505 lua_assert(ttisnumber(l) && ttisnumber(r)); 521 lua_assert(ttisnumber(l)); 522 lua_assert(ttisnumber(r)); 533 lua_assert(ttisnumber(l) && ttisnumber(r)); 549 lua_assert(ttisinteger(l)); 550 lua_assert(ttisinteger(r)); 1263 lua_assert(base == ci->func.p + 1); [all …]
|
H A D | lobject.c | 72 default: lua_assert(0); return 0; in intarith() 89 default: lua_assert(0); return 0; in numarith() 349 lua_assert(x <= 0x7FFFFFFFu); in luaO_utf8esc() 381 lua_assert(ttisnumber(obj)); in tostringbuff() 393 lua_assert(ttisinteger(obj)); in tostringbuff() 468 lua_assert(buff->blen <= BUFVFS); lua_assert(sz <= BUFVFS); in getbuff() 575 lua_assert(buff.pushed == 1); in luaO_pushvfstring()
|
H A D | lstate.c | 82 lua_assert(p == sizeof(buff)); in luai_makeseed() 95 lua_assert(tb > 0); in luaE_setdebt() 111 lua_assert(L->ci->next == NULL); in luaE_extendCI() 113 lua_assert(L->ci->next == NULL); in luaE_extendCI() 212 lua_assert(L->nci == 0); in freestack() 285 lua_assert(gettotalbytes(g) == sizeof(LG)); in close_state() 320 lua_assert(L1->openupval == NULL); in luaE_freethread()
|
H A D | ltable.c | 141 lua_assert(luai_numisnan(n) || l_mathop(fabs)(n) == cast_num(HUGE_VAL)); in l_hashfloat() 277 lua_assert(ispow2(size) && size/2 < t->alimit && t->alimit < size); in luaH_realasize() 417 lua_assert((optimal == 0 || optimal / 2 < na) && na <= optimal); in computesizes() 706 lua_assert(!isdummy(t)); in luaH_newkey() 724 else lua_assert(gnext(f) == 0); in luaH_newkey() 731 lua_assert(isempty(gval(mp))); in luaH_newkey() 774 lua_assert(key->tt == LUA_VSHRSTR); in luaH_getshortstr() 978 lua_assert(limit == luaH_realasize(t) && in luaH_getn()
|
H A D | lparser.c | 261 lua_assert(idx < fs->ndebugvars); in localdebuginfo() 381 lua_assert(eqstr(name, prev->f->upvalues[v->u.info].name)); in newupvalue() 474 lua_assert(var->k != VVOID); /* this one must exist */ in singlevar() 535 lua_assert(eqstr(gt->name, label->name)); in solvegoto() 655 lua_assert(fs->freereg == luaY_nvarstack(fs)); in enterblock() 766 lua_assert(fs->bl == NULL); in close_func() 944 lua_assert(cc.v.k == VVOID || cc.tostore > 0); in constructor() 1059 lua_assert(f->k == VNONRELOC); in funcargs() 1535 lua_assert(e.k == VNONRELOC); in exp1() 1850 lua_assert(nret == fs->freereg - first); in retstat() [all …]
|
H A D | lauxlib.h | 187 #if !defined(lua_assert) 191 #define lua_assert(c) assert(c) macro 193 #define lua_assert(c) ((void)0) macro
|
H A D | lstring.c | 40 lua_assert(a->tt == LUA_VLNGSTR && b->tt == LUA_VLNGSTR); in luaS_eqlngstr() 56 lua_assert(ts->tt == LUA_VLNGSTR); in luaS_hashlongstr() 198 lua_assert(str != NULL); /* otherwise 'memcmp'/'memcpy' are undefined */ in internshrstr()
|
H A D | ldebug.c | 46 lua_assert(isLua(ci)); in currentpc() 72 lua_assert(i < 0 || in getbaseline() 94 lua_assert(f->lineinfo[basepc] != ABSLINEINFO); in luaG_getfuncline() 311 lua_assert(GET_OPCODE(p->code[0]) == OP_VARARGPREP); in collectvalidlines() 403 lua_assert(ttisfunction(func)); in lua_getinfo() 816 lua_assert(ttisfunction(s2v(errfunc))); in luaG_errormsg()
|
H A D | lmathlib.c | 393 lua_assert(n > 0 && n < 32); in Ishl() 423 lua_assert(n > 0 && n < 32); in rotl() 430 lua_assert(n > 32 && n < 64); in rotl1() 549 lua_assert((lim & (lim + 1)) == 0 /* 'lim + 1' is a power of 2, */ in project()
|
H A D | lua.c | 345 lua_assert(argv[i][0] == '-'); /* already checked */ in runargs() 351 lua_assert(extra != NULL); in runargs() 571 lua_assert(lua_gettop(L) == 1); in loadline()
|
H A D | ltm.c | 71 lua_assert(event <= TM_EQ); in luaT_gettm() 265 lua_assert(L->top.p <= ci->top.p && ci->top.p <= L->stack_last.p); in luaT_adjustvarargs()
|
H A D | lundump.c | 191 default: lua_assert(0); in loadConstants() 337 lua_assert(cl->nupvalues == cl->p->sizeupvalues); in luaU_undump()
|
H A D | lobject.h | 125 checkliveness(L,io1); lua_assert(!isnonstrictnil(io1)); } 354 { TValue *io=(obj); lua_assert(ttisfloat(io)); val_(io).n=(x); } 360 { TValue *io=(obj); lua_assert(ttisinteger(io)); val_(io).i=(x); }
|
H A D | lcorolib.c | 84 lua_assert(stat != LUA_OK); in luaB_auxwrap()
|
H A D | lauxlib.c | 535 lua_assert(buffonstack(B) ? lua_touserdata(B->L, idx) != NULL \ 686 lua_assert(lua_isinteger(L, -1)); in luaL_ref() 705 lua_assert(lua_isinteger(L, -1)); in luaL_unref()
|
H A D | liolib.c | 193 lua_assert(p->f); in tofile() 642 lua_assert(n > 0); /* should return at least a nil */ in io_readline()
|
H A D | ldump.c | 145 lua_assert(tt == LUA_VNIL || tt == LUA_VFALSE || tt == LUA_VTRUE); in dumpConstants()
|
H A D | ltablib.c | 341 lua_assert(lo + r4 <= p && p <= up - r4); in choosePivot()
|