MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / lua_getfield

Function lua_getfield

lua/lapi.c:551–561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

549
550
551LUA_API void lua_getfield (lua_State *L, int idx, const char *k) {
552 StkId t;
553 TValue key;
554 lua_lock(L);
555 t = index2adr(L, idx);
556 api_checkvalidindex(L, t);
557 setsvalue(L, &key, luaS_new(L, k));
558 luaV_gettable(L, t, &key, L->top);
559 api_incr_top(L);
560 lua_unlock(L);
561}
562
563
564LUA_API void lua_rawget (lua_State *L, int idx) {

Callers 15

tracebackFunction · 0.85
get_promptFunction · 0.85
luaopen_mathFunction · 0.85
luaopen_stringFunction · 0.85
l_errfuncFunction · 0.85
luaL_newmetatableFunction · 0.85
luaL_checkudataFunction · 0.85
luaI_openlibFunction · 0.85
getsizesFunction · 0.85
get_sqlrow_stmtFunction · 0.85
stack_traceFunction · 0.85
push_clnt_colsFunction · 0.85

Calls 2

index2adrFunction · 0.85
luaV_gettableFunction · 0.85

Tested by

no test coverage detected