Lines Matching refs:api_check

45 #define api_checkvalidindex(L, o)  api_check(L, isvalid(o), "invalid index")
48 api_check(L, isstackindex(i, o), "index not in the stack")
55 api_check(L, idx <= ci->top - (ci->func + 1), "unacceptable index"); in index2addr()
60 api_check(L, idx != 0 && -idx <= L->top - (ci->func + 1), "invalid index"); in index2addr()
67 api_check(L, idx <= MAXUPVAL + 1, "upvalue index too large"); in index2addr()
113 api_check(from, G(from) == G(to), "moving among independent states"); in lua_xmove()
114 api_check(from, to->ci->top - to->top >= n, "not enough elements to move"); in lua_xmove()
165 api_check(L, idx <= L->stack_last - (func + 1), "new top too large"); in lua_settop()
171 api_check(L, -(idx+1) <= (L->top - (func + 1)), "invalid new top"); in lua_settop()
325 default: api_check(L, 0, "invalid option"); in lua_compare()
561 api_check(L, n <= MAXUPVAL, "upvalue index too large"); in lua_pushcclosure()
641 api_check(L, ttistable(t), "table expected"); in lua_rawget()
651 api_check(L, ttistable(t), "table expected"); in lua_rawgeti()
663 api_check(L, ttistable(t), "table expected"); in lua_rawgetp()
717 api_check(L, ttisuserdata(o), "userdata expected"); in lua_getuservalue()
773 api_check(L, ttistable(t), "table expected"); in lua_rawset()
787 api_check(L, ttistable(t), "table expected"); in lua_rawseti()
801 api_check(L, ttistable(t), "table expected"); in lua_rawsetp()
819 api_check(L, ttistable(L->top - 1), "table expected"); in lua_setmetatable()
855 api_check(L, ttisuserdata(o), "userdata expected"); in lua_setuservalue()
859 api_check(L, ttistable(L->top - 1), "table expected"); in lua_setuservalue()
874 api_check(L, (nr) == LUA_MULTRET || (L->ci->top - L->top >= (nr) - (na)), \
891 api_check(L, k == NULL || !isLua(L->ci), in lua_callk()
894 api_check(L, L->status == LUA_OK, "cannot do calls on non-normal thread"); in lua_callk()
932 api_check(L, k == NULL || !isLua(L->ci), in lua_pcallk()
935 api_check(L, L->status == LUA_OK, "cannot do calls on non-normal thread"); in lua_pcallk()
1117 api_check(L, ttistable(t), "table expected"); in lua_next()
1247 api_check(L, ttisLclosure(fi), "Lua function expected"); in getupvalref()
1249 api_check(L, (1 <= n && n <= f->p->sizeupvalues), "invalid upvalue index"); in getupvalref()
1263 api_check(L, 1 <= n && n <= f->nupvalues, "invalid upvalue index"); in lua_upvalueid()
1267 api_check(L, 0, "closure expected"); in lua_upvalueid()