Home
last modified time | relevance | path

Searched refs:lua_upvalueindex (Results 1 – 8 of 8) sorted by relevance

/netbsd-src/external/mit/lua/dist/src/
H A Dliolib.c632 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 Dlcorolib.c78 lua_State *co = lua_tothread(L, lua_upvalueindex(1)); in luaB_auxwrap()
H A Dloadlib.c528 lua_getfield(L, lua_upvalueindex(1), pname); in findfile()
630 if (l_unlikely(lua_getfield(L, lua_upvalueindex(1), "searchers") in findloader()
H A Dlmathlib.c562 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 Dlua.h49 #define lua_upvalueindex(i) (LUA_REGISTRYINDEX - (i)) macro
H A Dlstrlib.c847 GMatchState *gm = (GMatchState *)lua_touserdata(L, lua_upvalueindex(3)); in gmatch_aux()
/netbsd-src/external/bsd/lutok/dist/
H A Dstate.cpp878 return lua_upvalueindex(index); in upvalue_index()
H A Dstate_test.cpp131 const int f1 = lua_tointeger(raw(state), lua_upvalueindex(1)); in cxx_multiply_closure()