• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/contrib/openzfs/module/lua/

Lines Matching refs:api_check

46 #define api_checkvalidindex(L, o)  api_check(L, isvalid(o), "invalid index")
49 api_check(L, isstackindex(i, o), "index not in the stack")
56 api_check(L, idx <= ci->top - (ci->func + 1), "unacceptable index");
61 api_check(L, idx != 0 && -idx <= L->top - (ci->func + 1), "invalid index");
68 api_check(L, idx <= MAXUPVAL + 1, "upvalue index too large");
114 api_check(from, G(from) == G(to), "moving among independent states");
115 api_check(from, to->ci->top - to->top >= n, "not enough elements to move");
166 api_check(L, idx <= L->stack_last - (func + 1), "new top too large");
172 api_check(L, -(idx+1) <= (L->top - (func + 1)), "invalid new top");
324 default: api_check(L, 0, "invalid option");
560 api_check(L, n <= MAXUPVAL, "upvalue index too large");
640 api_check(L, ttistable(t), "table expected");
650 api_check(L, ttistable(t), "table expected");
662 api_check(L, ttistable(t), "table expected");
716 api_check(L, ttisuserdata(o), "userdata expected");
772 api_check(L, ttistable(t), "table expected");
786 api_check(L, ttistable(t), "table expected");
800 api_check(L, ttistable(t), "table expected");
818 api_check(L, ttistable(L->top - 1), "table expected");
854 api_check(L, ttisuserdata(o), "userdata expected");
858 api_check(L, ttistable(L->top - 1), "table expected");
873 api_check(L, (nr) == LUA_MULTRET || (L->ci->top - L->top >= (nr) - (na)), \
890 api_check(L, k == NULL || !isLua(L->ci),
893 api_check(L, L->status == LUA_OK, "cannot do calls on non-normal thread");
931 api_check(L, k == NULL || !isLua(L->ci),
934 api_check(L, L->status == LUA_OK, "cannot do calls on non-normal thread");
1116 api_check(L, ttistable(t), "table expected");
1246 api_check(L, ttisLclosure(fi), "Lua function expected");
1248 api_check(L, (1 <= n && n <= f->p->sizeupvalues), "invalid upvalue index");
1262 api_check(L, 1 <= n && n <= f->nupvalues, "invalid upvalue index");
1266 api_check(L, 0, "closure expected");