Home
last modified time | relevance | path

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

/minix3/external/mit/lua/dist/src/
H A Dliolib.c570 LStream *p = (LStream *)lua_touserdata(L, lua_upvalueindex(1)); in io_readline()
572 int n = (int)lua_tointeger(L, lua_upvalueindex(2)); in io_readline()
578 lua_pushvalue(L, lua_upvalueindex(3 + i)); in io_readline()
588 if (lua_toboolean(L, lua_upvalueindex(3))) { /* generator created file? */ in io_readline()
590 lua_pushvalue(L, lua_upvalueindex(1)); in io_readline()
H A Dlcorolib.c79 lua_State *co = lua_tothread(L, lua_upvalueindex(1)); in luaB_auxwrap()
H A Dloadlib.c439 lua_getfield(L, lua_upvalueindex(1), pname); in findfile()
537 if (lua_getfield(L, lua_upvalueindex(1), "searchers") != LUA_TTABLE) in findloader()
H A Dlstrlib.c656 const char *s = lua_tolstring(L, lua_upvalueindex(1), &ls); in gmatch_aux()
657 const char *p = lua_tolstring(L, lua_upvalueindex(2), &lp); in gmatch_aux()
664 for (src = s + (size_t)lua_tointeger(L, lua_upvalueindex(3)); in gmatch_aux()
674 lua_replace(L, lua_upvalueindex(3)); in gmatch_aux()
H A Dlbaselib.c210 lua_pushvalue(L, lua_upvalueindex(lua_type(L, 1) + 1)); in luaB_type()
H A Dlua.h57 #define lua_upvalueindex(i) (LUA_REGISTRYINDEX - (i)) macro
/minix3/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()