Home
last modified time | relevance | path

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

/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
Dliolib.c485 LStream *p = (LStream *)lua_touserdata(L, lua_upvalueindex(1)); in io_readline()
487 int n = (int)lua_tointeger(L, lua_upvalueindex(2)); in io_readline()
492 lua_pushvalue(L, lua_upvalueindex(3 + i)); in io_readline()
502 if (lua_toboolean(L, lua_upvalueindex(3))) { /* generator created file? */ in io_readline()
504 lua_pushvalue(L, lua_upvalueindex(1)); in io_readline()
Dlcorolib.c68 lua_State *co = lua_tothread(L, lua_upvalueindex(1)); in luaB_auxwrap()
Dlstrlib.c642 const char *s = lua_tolstring(L, lua_upvalueindex(1), &ls); in gmatch_aux()
643 const char *p = lua_tolstring(L, lua_upvalueindex(2), &lp); in gmatch_aux()
650 for (src = s + (size_t)lua_tointeger(L, lua_upvalueindex(3)); in gmatch_aux()
660 lua_replace(L, lua_upvalueindex(3)); in gmatch_aux()
Dloadlib.c390 lua_getfield(L, lua_upvalueindex(1), pname); in findfile()
482 lua_getfield(L, lua_upvalueindex(1), "searchers"); /* will be at index 3 */ in findloader()
/device/linaro/bootloader/edk2/StdLib/Include/Lua/
Dlua.h41 #define lua_upvalueindex(i) (LUA_REGISTRYINDEX - (i)) macro