Lines Matching refs:api_check
70 api_check(L, idx <= ci->top.p - (ci->func.p + 1), "unacceptable index"); in index2value()
75 api_check(L, idx != 0 && -idx <= L->top.p - (ci->func.p + 1), in index2value()
83 api_check(L, idx <= MAXUPVAL + 1, "upvalue index too large"); in index2value()
90 api_check(L, ttislcf(s2v(ci->func.p)), "caller not a C function"); in index2value()
105 api_check(L, o < L->top.p, "invalid index"); in index2stack()
109 api_check(L, idx != 0 && -idx <= L->top.p - (ci->func.p + 1), in index2stack()
111 api_check(L, !ispseudo(idx), "invalid index"); in index2stack()
122 api_check(L, n >= 0, "negative 'n'"); in lua_checkstack()
139 api_check(from, G(from) == G(to), "moving among independent states"); in lua_xmove()
140 api_check(from, to->ci->top.p - to->top.p >= n, "stack overflow"); in lua_xmove()
195 api_check(L, idx <= ci->top.p - (func + 1), "new top too large"); in lua_settop()
201 api_check(L, -(idx+1) <= (L->top.p - (func + 1)), "invalid new top"); in lua_settop()
204 api_check(L, L->tbclist.p < L->top.p, "previous pop of an unclosed slot"); in lua_settop()
219 api_check(L, hastocloseCfunc(L->ci->nresults) && L->tbclist.p == level, in lua_closeslot()
252 api_check(L, (n >= 0 ? n : -n) <= (t - p + 1), "invalid 'n'"); in lua_rotate()
266 api_check(L, isvalid(L, to), "invalid index"); in lua_copy()
298 api_check(L, LUA_TNONE <= t && t < LUA_NUMTYPES, "invalid type"); in lua_typename()
369 default: api_check(L, 0, "invalid option"); in lua_compare()
598 api_check(L, n <= MAXUPVAL, "upvalue index too large"); in lua_pushcclosure()
737 api_check(L, ttistable(t), "table expected"); in gettable()
817 api_check(L, ttisfulluserdata(o), "full userdata expected"); in lua_getiuservalue()
952 api_check(L, ttistable(s2v(L->top.p - 1)), "table expected"); in lua_setmetatable()
989 api_check(L, ttisfulluserdata(o), "full userdata expected"); in lua_setiuservalue()
1009 api_check(L, (nr) == LUA_MULTRET \
1018 api_check(L, k == NULL || !isLua(L->ci), in lua_callk()
1021 api_check(L, L->status == LUA_OK, "cannot do calls on non-normal thread"); in lua_callk()
1059 api_check(L, k == NULL || !isLua(L->ci), in lua_pcallk()
1062 api_check(L, L->status == LUA_OK, "cannot do calls on non-normal thread"); in lua_pcallk()
1068 api_check(L, ttisfunction(s2v(o)), "error handler must be a function"); in lua_pcallk()
1286 api_check(L, L->tbclist.p < o, "given index below or equal a marked one"); in lua_toclose()
1356 api_check(L, 0 <= nuvalue && nuvalue < USHRT_MAX, "invalid value"); in lua_newuserdatauv()
1431 api_check(L, ttisLclosure(fi), "Lua function expected"); in getupvalref()
1456 api_check(L, 0, "function expected"); in lua_upvalueid()
1468 api_check(L, *up1 != NULL && *up2 != NULL, "invalid upvalue index"); in lua_upvaluejoin()