MCPcopy Create free account
hub / github.com/TASEmulators/fceux / lua_setfield

Function lua_setfield

src/lua/src/lapi.c:657–668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

655
656
657LUA_API void lua_setfield (lua_State *L, int idx, const char *k) {
658 StkId t;
659 TValue key;
660 lua_lock(L);
661 api_checknelems(L, 1);
662 t = index2adr(L, idx);
663 api_checkvalidindex(L, t);
664 setsvalue(L, &key, luaS_new(L, k));
665 luaV_settable(L, t, &key, L->top - 1);
666 L->top--; /* pop value */
667 lua_unlock(L);
668}
669
670
671LUA_API void lua_rawset (lua_State *L, int idx) {

Callers 15

emu_registerbeforeFunction · 0.85
emu_registerafterFunction · 0.85
emu_registerexitFunction · 0.85
HandleCallbackErrorFunction · 0.85
input_getFunction · 0.85
zapper_readFunction · 0.85
joy_get_internalFunction · 0.85
joypad_getimmediateFunction · 0.85
savestate_create_aliasedFunction · 0.85
savestate_registersaveFunction · 0.85

Calls 2

index2adrFunction · 0.85
luaV_settableFunction · 0.85

Tested by

no test coverage detected