Home
last modified time | relevance | path

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

12

/l4re-core-master/lua/lib/contrib/src/
A Dlgc.c134 lua_assert(u->nuvalue > 0); in getgclist()
172 lua_assert(isempty(gval(n))); in clearkey()
219 lua_assert(issweepphase(g)); in luaC_barrier_()
425 lua_assert(isblack(o)); in genlink()
449 lua_assert(!keyisnil(n)); in traverseweakvalue()
527 lua_assert(!keyisnil(n)); in traversestrongtable()
804 default: lua_assert(0); in freeobj()
880 lua_assert(tofinalize(o)); in udata2finalize()
903 lua_assert(!g->gcemergency); in GCTM()
1198 lua_assert(!iswhite(p)); in markold()
[all …]
A Dlcode.c74 lua_assert(e->k == VCONST); in const2val()
169 lua_assert(dest != NO_JUMP); in fixjump()
306 lua_assert(target <= fs->pc); in luaK_patchlist()
440 lua_assert(a <= MAXARG_Ax); in codeextraarg()
694 default: lua_assert(0); in const2exp()
720 lua_assert(e->k == VKSTR); in str2K()
1263 lua_assert(!hasjumps(t) && in luaK_indexed()
1390 lua_assert(e2->k == VKINT); in codebini()
1565 default: lua_assert(0); in luaK_prefix()
1613 default: lua_assert(0); in luaK_infix()
[all …]
A 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))
A 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_()
172 lua_assert((nsize == 0) == (newblock == NULL)); in luaM_realloc_()
A Dldo.c225 lua_assert(stacksize(L) == ERRORSTACKSIZE); in luaD_growstack()
257 lua_assert(lim <= L->stack_last); in stackinuse()
333 lua_assert(!L->allowhook); in luaD_hook()
466 lua_assert(!(ci->callstatus & in luaD_poscall()
493 lua_assert(ci->top <= L->stack_last); in luaD_pretailcall()
526 lua_assert(ci->top <= L->stack_last); in luaD_precall()
553 lua_assert(ci->top <= L->stack_last); in luaD_precall()
652 lua_assert(hastocloseCfunc(ci->nresults)); in finishCcall()
659 lua_assert(ci->u.c.k != NULL && yieldable(L)); in finishCcall()
733 lua_assert(L->status == LUA_YIELD); in resume()
[all …]
A Dlfunc.c91 lua_assert(isintwups(L) || L->openupval == NULL); in luaF_findupval()
93 lua_assert(!isdead(G(L), p)); in luaF_findupval()
170 lua_assert(level > L->tbclist); in luaF_newtbcupval()
184 lua_assert(upisopen(uv)); in luaF_unlinkupval()
199 lua_assert(uplevel(uv) < L->top); in luaF_closeupval()
216 lua_assert(tbc->tbclist.delta > 0); /* first element cannot be dummy */ in poptbclist()
A Dlstate.c78 lua_assert(p == sizeof(buff)); in luai_makeseed()
91 lua_assert(tb > 0); in luaE_setdebt()
107 lua_assert(L->ci->next == NULL); in luaE_extendCI()
109 lua_assert(L->ci->next == NULL); in luaE_extendCI()
208 lua_assert(L->nci == 0); in freestack()
280 lua_assert(gettotalbytes(g) == sizeof(LG)); in close_state()
319 lua_assert(L1->openupval == NULL); in luaE_freethread()
A 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()
A 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()
477 lua_assert(ttisnumber(l) && ttisnumber(r)); in LTnum()
499 lua_assert(ttisnumber(l) && ttisnumber(r)); in LEnum()
521 lua_assert(!ttisnumber(l) || !ttisnumber(r)); in lessthanothers()
543 lua_assert(!ttisnumber(l) || !ttisnumber(r)); in lessequalothers()
929 TValue *v2 = KC(i); lua_assert(ttisnumber(v2)); \
1161 lua_assert(base == ci->func + 1); in luaV_execute()
1646 lua_assert(base == ci->func + 1); in luaV_execute()
[all …]
A Dllex.c158 lua_assert(currIsNewline(ls)); in inclinenumber()
205 lua_assert(set[2] == '\0'); in check_next2()
231 lua_assert(lisdigit(ls->current)); in read_numeral()
252 lua_assert(ttisfloat(&obj)); in read_numeral()
268 lua_assert(s == '[' || s == ']'); in skip_sep()
577 lua_assert(ls->lookahead.token == TK_EOS); in luaX_lookahead()
A Dltable.c124 lua_assert(luai_numisnan(n) || l_mathop(fabs)(n) == cast_num(HUGE_VAL)); in l_hashfloat()
256 lua_assert(ispow2(size) && size/2 < t->alimit && t->alimit < size); in luaH_realasize()
396 lua_assert((optimal == 0 || optimal / 2 < na) && na <= optimal); in computesizes()
681 lua_assert(!isdummy(t)); in luaH_newkey()
699 else lua_assert(gnext(f) == 0); in luaH_newkey()
706 lua_assert(isempty(gval(mp))); in luaH_newkey()
749 lua_assert(key->tt == LUA_VSHRSTR); in luaH_getshortstr()
951 lua_assert(limit == luaH_realasize(t) && in luaH_getn()
A Dlauxlib.h164 #if !defined(lua_assert)
168 #define lua_assert(c) assert(c) macro
170 #define lua_assert(c) ((void)0) macro
A Dlstring.c36 lua_assert(a->tt == LUA_VLNGSTR && b->tt == LUA_VLNGSTR); in luaS_eqlngstr()
52 lua_assert(ts->tt == LUA_VLNGSTR); in luaS_hashlongstr()
194 lua_assert(str != NULL); /* otherwise 'memcmp'/'memcpy' are undefined */ in internshrstr()
A Dlparser.c257 lua_assert(idx < fs->ndebugvars); in localdebuginfo()
459 lua_assert(var->k != VVOID); /* this one must exist */ in singlevar()
519 lua_assert(eqstr(gt->name, label->name)); in solvegoto()
639 lua_assert(fs->freereg == luaY_nvarstack(fs)); in enterblock()
671 lua_assert(bl->nactvar == fs->nactvar); in leaveblock()
750 lua_assert(fs->bl == NULL); in close_func()
928 lua_assert(cc.v.k == VVOID || cc.tostore > 0); in constructor()
1043 lua_assert(f->k == VNONRELOC); in funcargs()
1509 lua_assert(e.k == VNONRELOC); in exp1()
1825 lua_assert(nret == fs->freereg - first); in retstat()
[all …]
A Dlmathlib.c391 lua_assert(n > 0 && n < 32); in Ishl()
421 lua_assert(n > 0 && n < 32); in rotl()
428 lua_assert(n > 32 && n < 64); in rotl1()
547 lua_assert((lim & (lim + 1)) == 0 /* 'lim + 1' is a power of 2, */ in project()
A Dldebug.c42 lua_assert(isLua(ci)); in currentpc()
68 lua_assert(i < 0 || in getbaseline()
90 lua_assert(f->lineinfo[basepc] != ABSLINEINFO); in luaG_getfuncline()
398 lua_assert(ttisfunction(func)); in lua_getinfo()
768 lua_assert(ttisfunction(s2v(errfunc))); in luaG_errormsg()
A Dlua.c326 lua_assert(argv[i][0] == '-'); /* already checked */ in runargs()
332 lua_assert(extra != NULL); in runargs()
552 lua_assert(lua_gettop(L) == 1); in loadline()
A Dltm.c62 lua_assert(event <= TM_EQ); in luaT_gettm()
254 lua_assert(L->top <= ci->top && ci->top <= L->stack_last); in luaT_adjustvarargs()
A Dlundump.c185 default: lua_assert(0); in loadConstants()
329 lua_assert(cl->nupvalues == cl->p->sizeupvalues); in luaU_undump()
A Dlobject.h119 checkliveness(L,io1); lua_assert(!isnonstrictnil(io1)); }
329 { TValue *io=(obj); lua_assert(ttisfloat(io)); val_(io).n=(x); }
335 { TValue *io=(obj); lua_assert(ttisinteger(io)); val_(io).i=(x); }
A Dlcorolib.c80 lua_assert(stat != LUA_OK); in luaB_auxwrap()
A Dlauxlib.c523 lua_assert(buffonstack(B) ? lua_touserdata(B->L, idx) != NULL \
673 lua_assert(lua_isinteger(L, -1)); in luaL_ref()
692 lua_assert(lua_isinteger(L, -1)); in luaL_unref()
A Dldump.c128 lua_assert(tt == LUA_VNIL || tt == LUA_VFALSE || tt == LUA_VTRUE); in dumpConstants()
A Dliolib.c191 lua_assert(p->f); in tofile()
640 lua_assert(n > 0); /* should return at least a nil */ in io_readline()
A Dltablib.c336 lua_assert(lo + r4 <= p && p <= up - r4); in choosePivot()

Completed in 53 milliseconds

12