HomeSort by: relevance | last modified time | path
    Searched refs:lua_assert (Results 1 - 25 of 28) sorted by relevancy

1 2

  /src/external/mit/lua/dist/src/
lmem.c 117 lua_assert(nelems + 1 <= size && size <= limit);
137 lua_assert(newsize <= oldsize);
156 lua_assert((osize == 0) == (block == NULL));
183 lua_assert((osize == 0) == (block == NULL));
190 lua_assert((nsize == 0) == (newblock == NULL));
lgc.c 137 lua_assert(u->nuvalue > 0);
140 default: lua_assert(0); return 0;
152 lua_assert(!isgray(o)); /* cannot be in a gray list */
175 lua_assert(isempty(gval(n)));
213 lua_assert(isblack(o) && iswhite(v) && !isdead(g, v) && !isdead(g, o));
217 lua_assert(!isold(v)); /* white object could not be old */
222 lua_assert(issweepphase(g));
235 lua_assert(isblack(o) && !isdead(g, o));
236 lua_assert((g->gckind == KGC_GEN) == (isold(o) && getage(o) != G_TOUCHED1));
248 lua_assert(g->allgc == o); /* object must be 1st in 'allgc' list! *
    [all...]
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))
lcode.c 81 lua_assert(e->k == VCONST);
176 lua_assert(dest != NO_JUMP);
179 lua_assert(GET_OPCODE(*jmp) == OP_JMP);
313 lua_assert(target <= fs->pc);
367 lua_assert(f->abslineinfo[fs->nabslineinfo - 1].pc == pc);
404 lua_assert(getOpMode(o) == iABC);
405 lua_assert(a <= MAXARG_A && b <= MAXARG_B &&
415 lua_assert(getOpMode(o) == iABx);
416 lua_assert(a <= MAXARG_A && bc <= MAXARG_Bx);
426 lua_assert(getOpMode(o) == iAsBx)
    [all...]
lfunc.c 94 lua_assert(isintwups(L) || L->openupval == NULL);
96 lua_assert(!isdead(G(L), p));
173 lua_assert(level > L->tbclist.p);
187 lua_assert(upisopen(uv));
202 lua_assert(uplevel(uv) < L->top.p);
219 lua_assert(tbc->tbclist.delta > 0); /* first element cannot be dummy */
llex.c 166 lua_assert(currIsNewline(ls));
213 lua_assert(set[2] == '\0');
240 lua_assert(lisdigit(ls->current));
261 lua_assert(ttisfloat(&obj));
272 lua_assert(lisdigit(ls->current));
284 lua_assert(ttisinteger(&obj));
299 lua_assert(s == '[' || s == ']');
612 lua_assert(ls->lookahead.token == TK_EOS);
lobject.c 72 default: lua_assert(0); return 0;
89 default: lua_assert(0); return 0;
349 lua_assert(x <= 0x7FFFFFFFu);
381 lua_assert(ttisnumber(obj));
393 lua_assert(ttisinteger(obj));
468 lua_assert(buff->blen <= BUFVFS); lua_assert(sz <= BUFVFS);
575 lua_assert(buff.pushed == 1);
ldo.c 110 lua_assert(errorstatus(errcode)); /* real error */
221 lua_assert(newsize <= LUAI_MAXSTACK || newsize == ERRORSTACKSIZE);
252 lua_assert(stacksize(L) == ERRORSTACKSIZE);
287 lua_assert(lim <= L->stack_last.p + EXTRA_STACK);
359 lua_assert(!L->allowhook);
496 lua_assert(!(ci->callstatus &
527 lua_assert(ci->top.p <= L->stack_last.p);
568 lua_assert(ci->top.p <= L->stack_last.p);
612 lua_assert(ci->top.p <= L->stack_last.p);
715 lua_assert(hastocloseCfunc(ci->nresults))
    [all...]
lstate.c 82 lua_assert(p == sizeof(buff));
95 lua_assert(tb > 0);
111 lua_assert(L->ci->next == NULL);
113 lua_assert(L->ci->next == NULL);
212 lua_assert(L->nci == 0);
285 lua_assert(gettotalbytes(g) == sizeof(LG));
320 lua_assert(L1->openupval == NULL);
lvm.c 99 lua_assert(obj != result);
318 lua_assert(!ttistable(t));
325 lua_assert(isempty(slot));
362 lua_assert(isempty(slot)); /* slot must be empty */
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))
    [all...]
lauxlib.h 187 #if !defined(lua_assert)
191 #define lua_assert(c) assert(c) macro
193 #define lua_assert(c) ((void)0) macro
lstring.c 40 lua_assert(a->tt == LUA_VLNGSTR && b->tt == LUA_VLNGSTR);
56 lua_assert(ts->tt == LUA_VLNGSTR);
198 lua_assert(str != NULL); /* otherwise 'memcmp'/'memcpy' are undefined */
ltable.c 141 lua_assert(luai_numisnan(n) || l_mathop(fabs)(n) == cast_num(HUGE_VAL));
277 lua_assert(ispow2(size) && size/2 < t->alimit && t->alimit < size);
417 lua_assert((optimal == 0 || optimal / 2 < na) && na <= optimal);
706 lua_assert(!isdummy(t));
724 else lua_assert(gnext(f) == 0);
731 lua_assert(isempty(gval(mp)));
774 lua_assert(key->tt == LUA_VSHRSTR);
978 lua_assert(limit == luaH_realasize(t) &&
lua.c 345 lua_assert(argv[i][0] == '-'); /* already checked */
351 lua_assert(extra != NULL);
571 lua_assert(lua_gettop(L) == 1);
lcorolib.c 84 lua_assert(stat != LUA_OK);
lmathlib.c 393 lua_assert(n > 0 && n < 32);
423 lua_assert(n > 0 && n < 32);
430 lua_assert(n > 32 && n < 64);
549 lua_assert((lim & (lim + 1)) == 0 /* 'lim + 1' is a power of 2, */
lparser.c 261 lua_assert(idx < fs->ndebugvars);
375 lua_assert(eqstr(name, getlocalvardesc(prev, v->u.var.vidx)->vd.name));
381 lua_assert(eqstr(name, prev->f->upvalues[v->u.info].name));
474 lua_assert(var->k != VVOID); /* this one must exist */
535 lua_assert(eqstr(gt->name, label->name));
655 lua_assert(fs->freereg == luaY_nvarstack(fs));
682 lua_assert(bl->nactvar == fs->nactvar); /* back to level on entry */
766 lua_assert(fs->bl == NULL);
944 lua_assert(cc.v.k == VVOID || cc.tostore > 0);
1059 lua_assert(f->k == VNONRELOC)
    [all...]
ltm.c 71 lua_assert(event <= TM_EQ);
265 lua_assert(L->top.p <= ci->top.p && ci->top.p <= L->stack_last.p);
ldebug.c 46 lua_assert(isLua(ci));
72 lua_assert(i < 0 ||
94 lua_assert(f->lineinfo[basepc] != ABSLINEINFO);
311 lua_assert(GET_OPCODE(p->code[0]) == OP_VARARGPREP);
403 lua_assert(ttisfunction(func));
816 lua_assert(ttisfunction(s2v(errfunc)));
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); }
lundump.c 191 default: lua_assert(0);
337 lua_assert(cl->nupvalues == cl->p->sizeupvalues);
ldump.c 145 lua_assert(tt == LUA_VNIL || tt == LUA_VFALSE || tt == LUA_VTRUE);
liolib.c 193 lua_assert(p->f);
642 lua_assert(n > 0); /* should return at least a nil */
lauxlib.c 535 lua_assert(buffonstack(B) ? lua_touserdata(B->L, idx) != NULL \
686 lua_assert(lua_isinteger(L, -1));
705 lua_assert(lua_isinteger(L, -1));
ldblib.c 337 lua_assert(lua_getinfo(L, "lS", ar));

Completed in 127 milliseconds

1 2