Searched refs:savestack (Results 1 – 6 of 6) sorted by relevance
/netbsd-src/external/mit/lua/dist/src/ |
H A D | ldo.h | 38 #define savestack(L,pt) (cast_charp(pt) - cast_charp(L->stack.p)) macro 45 ptrdiff_t t__ = savestack(L, p), /* save 'p' */ \ 52 ptrdiff_t t__ = savestack(L, p); /* save 'p' */ \
|
H A D | ldo.c | 172 L->top.offset = savestack(L, L->top.p); in relstack() 173 L->tbclist.offset = savestack(L, L->tbclist.p); in relstack() 175 up->v.offset = savestack(L, uplevel(up)); in relstack() 177 ci->top.offset = savestack(L, ci->top.p); in relstack() 178 ci->func.offset = savestack(L, ci->func.p); in relstack() 338 ptrdiff_t top = savestack(L, L->top.p); /* preserve original 'top' */ in luaD_hook() 339 ptrdiff_t ci_top = savestack(L, ci->top.p); /* idem for 'ci->top' */ in luaD_hook() 461 ptrdiff_t savedres = savestack(L, res); in moveresults() 1019 status = luaD_pcall(L, f_parser, &p, savestack(L, L->top.p), L->errfunc); in luaD_protectedparser()
|
H A D | ltm.c | 130 ptrdiff_t result = savestack(L, res); in luaT_callTMres()
|
H A D | lfunc.c | 232 ptrdiff_t levelrel = savestack(L, level); in luaF_close()
|
H A D | lapi.c | 1069 func = savestack(L, o); in lua_pcallk() 1074 status = luaD_pcall(L, f_call, &c, savestack(L, c.func), func); in lua_pcallk() 1081 ci->u2.funcidx = cast_int(savestack(L, c.func)); in lua_pcallk()
|
H A D | lgc.c | 924 status = luaD_pcall(L, dothecall, NULL, savestack(L, L->top.p - 2), 0); in GCTM()
|