Home
last modified time | relevance | path

Searched refs:api_check (Results 1 – 6 of 6) sorted by relevance

/illumos-gate/usr/src/uts/common/fs/zfs/lua/
H A Dlapi.c48 #define api_checkvalidindex(L, o) api_check(L, isvalid(o), "invalid index")
51 api_check(L, isstackindex(i, o), "index not in the stack")
58 api_check(L, idx <= ci->top - (ci->func + 1), "unacceptable index"); in index2addr()
63 api_check(L, idx != 0 && -idx <= L->top - (ci->func + 1), "invalid index"); in index2addr()
70 api_check(L, idx <= MAXUPVAL + 1, "upvalue index too large"); in index2addr()
116 api_check(from, G(from) == G(to), "moving among independent states"); in lua_xmove()
117 api_check(from, to->ci->top - to->top >= n, "not enough elements to move"); in lua_xmove()
168 api_check(L, idx <= L->stack_last - (func + 1), "new top too large"); in lua_settop()
174 api_check(L, -(idx+1) <= (L->top - (func + 1)), "invalid new top"); in lua_settop()
326 default: api_check(L, 0, "invalid option"); in lua_compare()
[all …]
H A Dlapi.h14 #define api_incr_top(L) {L->top++; api_check(L, L->top <= L->ci->top, \
20 #define api_checknelems(L,n) api_check(L, (n) < (L->top - L->ci->func), \
H A Dlmem.c86 api_check(L, nsize > realosize, in luaM_realloc_()
H A Dllimits.h83 #define api_check(l,e,msg) luai_apicheck(l,(e) && msg) macro
H A Dldebug.c288 api_check(L, ttisfunction(func), "function expected"); in lua_getinfo()
H A Dldo.c585 api_check(L, k == NULL, "hooks cannot continue after yielding"); in lua_yieldk()