• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/lua/src/

Lines Matching refs:api_check

54 #define api_checkvalidindex(l,o)  api_check(l, isvalid(o), "invalid index")
57 api_check(l, isstackindex(i, o), "index not in the stack")
64 api_check(L, idx <= ci->top - (ci->func + 1), "unacceptable index");
69 api_check(L, idx != 0 && -idx <= L->top - (ci->func + 1), "invalid index");
76 api_check(L, idx <= MAXUPVAL + 1, "upvalue index too large");
101 api_check(L, n >= 0, "negative 'n'");
123 api_check(from, G(from) == G(to), "moving among independent states");
124 api_check(from, to->ci->top - to->top >= n, "stack overflow");
128 to->top++; /* stack already checked by previous 'api_check' */
176 api_check(L, idx <= L->stack_last - (func + 1), "new top too large");
182 api_check(L, -(idx+1) <= (L->top - (func + 1)), "invalid new top");
213 api_check(L, (n >= 0 ? n : -n) <= (t - p + 1), "invalid 'n'");
259 api_check(L, LUA_TNONE <= t && t < LUA_NUMTAGS, "invalid tag");
329 default: api_check(L, 0, "invalid option");
541 api_check(L, n <= MAXUPVAL, "upvalue index too large");
651 api_check(L, ttistable(t), "table expected");
662 api_check(L, ttistable(t), "table expected");
675 api_check(L, ttistable(t), "table expected");
728 api_check(L, ttisfulluserdata(o), "full userdata expected");
807 api_check(L, ttistable(o), "table expected");
822 api_check(L, ttistable(o), "table expected");
836 api_check(L, ttistable(o), "table expected");
855 api_check(L, ttistable(L->top - 1), "table expected");
891 api_check(L, ttisfulluserdata(o), "full userdata expected");
905 api_check(L, (nr) == LUA_MULTRET || (L->ci->top - L->top >= (nr) - (na)), \
913 api_check(L, k == NULL || !isLua(L->ci),
916 api_check(L, L->status == LUA_OK, "cannot do calls on non-normal thread");
954 api_check(L, k == NULL || !isLua(L->ci),
957 api_check(L, L->status == LUA_OK, "cannot do calls on non-normal thread");
1128 api_check(L, ttistable(t), "table expected");
1260 api_check(L, ttisLclosure(fi), "Lua function expected");
1262 api_check(L, (1 <= n && n <= f->p->sizeupvalues), "invalid upvalue index");
1275 api_check(L, 1 <= n && n <= f->nupvalues, "invalid upvalue index");
1279 api_check(L, 0, "closure expected");