Lines Matching refs:api_check
60 api_check(L, idx <= L->ci->top - (ci->func + 1), "unacceptable index"); in index2value()
65 api_check(L, idx != 0 && -idx <= L->top - (ci->func + 1), "invalid index"); in index2value()
72 api_check(L, idx <= MAXUPVAL + 1, "upvalue index too large"); in index2value()
87 api_check(L, o < L->top, "unacceptable index"); in index2stack()
91 api_check(L, idx != 0 && -idx <= L->top - (ci->func + 1), "invalid index"); in index2stack()
92 api_check(L, !ispseudo(idx), "invalid index"); in index2stack()
103 api_check(L, n >= 0, "negative 'n'"); in lua_checkstack()
125 api_check(from, G(from) == G(to), "moving among independent states"); in lua_xmove()
126 api_check(from, to->ci->top - to->top >= n, "stack overflow"); in lua_xmove()
181 api_check(L, idx <= ci->top - (func + 1), "new top too large"); in lua_settop()
187 api_check(L, -(idx+1) <= (L->top - (func + 1)), "invalid new top"); in lua_settop()
222 api_check(L, (n >= 0 ? n : -n) <= (t - p + 1), "invalid 'n'"); in lua_rotate()
236 api_check(L, isvalid(L, to), "invalid index"); in lua_copy()
268 api_check(L, LUA_TNONE <= t && t < LUA_NUMTYPES, "invalid type"); in lua_typename()
339 default: api_check(L, 0, "invalid option"); in lua_compare()
564 api_check(L, n <= MAXUPVAL, "upvalue index too large"); in lua_pushcclosure()
693 api_check(L, ttistable(t), "table expected"); in gettable()
773 api_check(L, ttisfulluserdata(o), "full userdata expected"); in lua_getiuservalue()
910 api_check(L, ttistable(s2v(L->top - 1)), "table expected"); in lua_setmetatable()
947 api_check(L, ttisfulluserdata(o), "full userdata expected"); in lua_setiuservalue()
967 api_check(L, (nr) == LUA_MULTRET || (L->ci->top - L->top >= (nr) - (na)), \
975 api_check(L, k == NULL || !isLua(L->ci), in lua_callk()
978 api_check(L, L->status == LUA_OK, "cannot do calls on non-normal thread"); in lua_callk()
1016 api_check(L, k == NULL || !isLua(L->ci), in lua_pcallk()
1019 api_check(L, L->status == LUA_OK, "cannot do calls on non-normal thread"); in lua_pcallk()
1025 api_check(L, ttisfunction(s2v(o)), "error handler must be a function"); in lua_pcallk()
1243 api_check(L, L->openupval == NULL || uplevel(L->openupval) <= o, in lua_toclose()
1314 api_check(L, 0 <= nuvalue && nuvalue < USHRT_MAX, "invalid value"); in lua_newuserdatauv()
1389 api_check(L, ttisLclosure(fi), "Lua function expected"); in getupvalref()
1414 api_check(L, 0, "function expected"); in lua_upvalueid()
1426 api_check(L, *up1 != NULL && *up2 != NULL, "invalid upvalue index"); in lua_upvaluejoin()