Searched refs:lua_upvalueindex (Results 1 – 8 of 8) sorted by relevance
| /minix3/external/mit/lua/dist/src/ |
| H A D | liolib.c | 570 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 D | lcorolib.c | 79 lua_State *co = lua_tothread(L, lua_upvalueindex(1)); in luaB_auxwrap()
|
| H A D | loadlib.c | 439 lua_getfield(L, lua_upvalueindex(1), pname); in findfile() 537 if (lua_getfield(L, lua_upvalueindex(1), "searchers") != LUA_TTABLE) in findloader()
|
| H A D | lstrlib.c | 656 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 D | lbaselib.c | 210 lua_pushvalue(L, lua_upvalueindex(lua_type(L, 1) + 1)); in luaB_type()
|
| H A D | lua.h | 57 #define lua_upvalueindex(i) (LUA_REGISTRYINDEX - (i)) macro
|
| /minix3/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()
|