MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / rawGetField

Method rawGetField

source/core/StarLua.cpp:1323–1331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1321}
1322
1323void LuaDetail::rawGetField(lua_State* state, int index, char const* key) {
1324 lua_checkstack(state, 2);
1325
1326 int absTableIndex = lua_absindex(state, index);
1327 lua_pushstring(state, key);
1328
1329 // Pops the key
1330 lua_rawget(state, absTableIndex);
1331}
1332
1333void LuaDetail::shallowCopy(lua_State* state, int sourceIndex, int targetIndex) {
1334 lua_checkstack(state, 3);

Callers

nothing calls this directly

Calls 4

lua_checkstackFunction · 0.85
lua_absindexFunction · 0.85
lua_pushstringFunction · 0.85
lua_rawgetFunction · 0.85

Tested by

no test coverage detected