MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / lua_setfield

Function lua_setfield

Source/Misc/lua/src/lua.c:2506–2517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2504
2505
2506LUA_API void lua_setfield (lua_State *L, int idx, const char *k) {
2507StkId t;
2508TValue key;
2509lua_lock(L);
2510api_checknelems(L, 1);
2511t = index2adr(L, idx);
2512api_checkvalidindex(L, t);
2513setsvalue(L, &key, luaS_new(L, k));
2514luaV_settable(L, t, &key, L->top - 1);
2515L->top--; /* pop value */
2516lua_unlock(L);
2517}
2518
2519
2520LUA_API void lua_rawset (lua_State *L, int idx) {

Callers 15

luausb_init_structsFunction · 0.85
luausb_init_enumsFunction · 0.85
usb.cFile · 0.85
luaopen_usbFunction · 0.85
setfuncsFunction · 0.85
create_gc_udataFunction · 0.85
make_rangeFunction · 0.85
luaL_newmetatableFunction · 0.85

Calls 2

index2adrFunction · 0.85
luaV_settableFunction · 0.85

Tested by

no test coverage detected