Searched refs:lua_upvalueindex (Results 1 – 10 of 10) sorted by relevance
/external/rust/android-crates-io/crates/grpcio-sys/grpc/third_party/upb/lua/ |
D | def.c | 245 const upb_OneofDef* o = lupb_OneofDef_check(L, lua_upvalueindex(1)); in lupb_oneofiter_next() 246 int* index = lua_touserdata(L, lua_upvalueindex(2)); in lupb_oneofiter_next() 250 lupb_wrapper_pushwrapper(L, lua_upvalueindex(1), f, LUPB_FIELDDEF); in lupb_oneofiter_next() 420 const upb_MessageDef* m = lupb_MessageDef_check(L, lua_upvalueindex(1)); in lupb_msgfielditer_next() 421 int* index = lua_touserdata(L, lua_upvalueindex(2)); in lupb_msgfielditer_next() 425 lupb_wrapper_pushwrapper(L, lua_upvalueindex(1), f, LUPB_FIELDDEF); in lupb_msgfielditer_next() 460 const upb_MessageDef* m = lupb_MessageDef_check(L, lua_upvalueindex(1)); in lupb_msgoneofiter_next() 461 int* index = lua_touserdata(L, lua_upvalueindex(2)); in lupb_msgoneofiter_next() 465 lupb_wrapper_pushwrapper(L, lua_upvalueindex(1), o, LUPB_ONEOFDEF); in lupb_msgoneofiter_next()
|
D | upb.c | 119 lua_rawget(L, lua_upvalueindex(1)); in lupb_indexmm() 125 lua_pushvalue(L, lua_upvalueindex(2)); in lupb_indexmm()
|
D | msg.c | 595 int map = lua_upvalueindex(2); in lupb_MapIterator_Next() 596 size_t* iter = lua_touserdata(L, lua_upvalueindex(1)); in lupb_MapIterator_Next()
|
/external/lua/src/ |
D | liolib.c | 624 LStream *p = (LStream *)lua_touserdata(L, lua_upvalueindex(1)); in io_readline() 626 int n = (int)lua_tointeger(L, lua_upvalueindex(2)); in io_readline() 632 lua_pushvalue(L, lua_upvalueindex(3 + i)); in io_readline() 642 if (lua_toboolean(L, lua_upvalueindex(3))) { /* generator created file? */ in io_readline() 644 lua_pushvalue(L, lua_upvalueindex(1)); /* push file at index 1 */ in io_readline()
|
D | lcorolib.c | 74 lua_State *co = lua_tothread(L, lua_upvalueindex(1)); in luaB_auxwrap()
|
D | loadlib.c | 524 lua_getfield(L, lua_upvalueindex(1), pname); in findfile() 626 if (lua_getfield(L, lua_upvalueindex(1), "searchers") != LUA_TTABLE) in findloader()
|
D | lmathlib.c | 559 RanState *state = (RanState *)lua_touserdata(L, lua_upvalueindex(1)); in math_random() 618 RanState *state = (RanState *)lua_touserdata(L, lua_upvalueindex(1)); in math_randomseed()
|
D | lua.h | 45 #define lua_upvalueindex(i) (LUA_REGISTRYINDEX - (i)) macro
|
D | lstrlib.c | 836 GMatchState *gm = (GMatchState *)lua_touserdata(L, lua_upvalueindex(3)); in gmatch_aux()
|
/external/libtextclassifier/native/utils/ |
D | lua-utils.h | 62 return static_cast<T>(lua_touserdata(state, lua_upvalueindex(index))); in FromUpValue() 497 return (*static_cast<T*>(lua_touserdata(state, lua_upvalueindex(1))))(); in CallFunction()
|