Home
last modified time | relevance | path

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/
Ddef.c245 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()
Dupb.c119 lua_rawget(L, lua_upvalueindex(1)); in lupb_indexmm()
125 lua_pushvalue(L, lua_upvalueindex(2)); in lupb_indexmm()
Dmsg.c595 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/
Dliolib.c624 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()
Dlcorolib.c74 lua_State *co = lua_tothread(L, lua_upvalueindex(1)); in luaB_auxwrap()
Dloadlib.c524 lua_getfield(L, lua_upvalueindex(1), pname); in findfile()
626 if (lua_getfield(L, lua_upvalueindex(1), "searchers") != LUA_TTABLE) in findloader()
Dlmathlib.c559 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()
Dlua.h45 #define lua_upvalueindex(i) (LUA_REGISTRYINDEX - (i)) macro
Dlstrlib.c836 GMatchState *gm = (GMatchState *)lua_touserdata(L, lua_upvalueindex(3)); in gmatch_aux()
/external/libtextclassifier/native/utils/
Dlua-utils.h62 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()