Searched refs:lua_upvalueindex (Results 1 – 8 of 8) sorted by relevance
/netbsd-src/external/mit/lua/dist/src/ |
H A D | liolib.c | 632 LStream *p = (LStream *)lua_touserdata(L, lua_upvalueindex(1)); in io_readline() 634 int n = (int)lua_tointeger(L, lua_upvalueindex(2)); in io_readline() 640 lua_pushvalue(L, lua_upvalueindex(3 + i)); in io_readline() 650 if (lua_toboolean(L, lua_upvalueindex(3))) { /* generator created file? */ in io_readline() 652 lua_pushvalue(L, lua_upvalueindex(1)); /* push file at index 1 */ in io_readline()
|
H A D | lcorolib.c | 78 lua_State *co = lua_tothread(L, lua_upvalueindex(1)); in luaB_auxwrap()
|
H A D | loadlib.c | 528 lua_getfield(L, lua_upvalueindex(1), pname); in findfile() 630 if (l_unlikely(lua_getfield(L, lua_upvalueindex(1), "searchers") in findloader()
|
H A D | lmathlib.c | 562 RanState *state = (RanState *)lua_touserdata(L, lua_upvalueindex(1)); in math_random() 621 RanState *state = (RanState *)lua_touserdata(L, lua_upvalueindex(1)); in math_randomseed()
|
H A D | lua.h | 49 #define lua_upvalueindex(i) (LUA_REGISTRYINDEX - (i)) macro
|
H A D | lstrlib.c | 847 GMatchState *gm = (GMatchState *)lua_touserdata(L, lua_upvalueindex(3)); in gmatch_aux()
|
/netbsd-src/external/bsd/lutok/dist/ |
H A D | state.cpp | 878 return lua_upvalueindex(index); in upvalue_index()
|
H A D | state_test.cpp | 131 const int f1 = lua_tointeger(raw(state), lua_upvalueindex(1)); in cxx_multiply_closure()
|