Searched refs:api_check (Results 1 – 11 of 11) sorted by relevance
/freebsd/sys/contrib/openzfs/module/lua/ |
H A D | lapi.c | 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() [all …]
|
H A D | lapi.h | 14 #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 D | lmem.c | 84 api_check(L, nsize > realosize, in luaM_realloc_()
|
H A D | llimits.h | 81 #define api_check(l,e,msg) luai_apicheck(l,(e) && msg) macro
|
H A D | ldebug.c | 287 api_check(L, ttisfunction(func), "function expected"); in lua_getinfo()
|
H A D | ldo.c | 669 api_check(L, k == NULL, "hooks cannot continue after yielding"); in lua_yieldk()
|
/freebsd/contrib/lua/src/ |
H A D | lapi.c | 64 api_check(L, idx <= ci->top.p - (ci->func.p + 1), "unacceptable index"); in index2value() 69 api_check(L, idx != 0 && -idx <= L->top.p - (ci->func.p + 1), in index2value() 77 api_check(L, idx <= MAXUPVAL + 1, "upvalue index too large"); in index2value() 84 api_check(L, ttislcf(s2v(ci->func.p)), "caller not a C function"); in index2value() 99 api_check(L, o < L->top.p, "invalid index"); in index2stack() 103 api_check(L, idx != 0 && -idx <= L->top.p - (ci->func.p + 1), in index2stack() 105 api_check(L, !ispseudo(idx), "invalid index"); in index2stack() 116 api_check(L, n >= 0, "negative 'n'"); in lua_checkstack() 133 api_check(from, G(from) == G(to), "moving among independent states"); in lua_xmove() 134 api_check(from, to->ci->top.p - to->top.p >= n, "stack overflow"); in lua_xmove() [all …]
|
H A D | lapi.h | 17 api_check(L, L->top.p <= L->ci->top.p, \ 33 api_check(L, (n) < (L->top.p - L->ci->func.p), \
|
H A D | llimits.h | 126 #define api_check(l,e,msg) luai_apicheck(l,(e) && msg) macro
|
H A D | ldo.c | 888 api_check(L, nresults == 0, "hooks cannot yield values"); in lua_yieldk() 889 api_check(L, k == NULL, "hooks cannot continue after yielding"); in lua_yieldk()
|
H A D | ldebug.c | 392 api_check(L, ttisfunction(func), "function expected"); in lua_getinfo()
|