MCPcopy Create free account
hub / github.com/Tencent/UnLua / lpb_fetchtable

Function lpb_fetchtable

Plugins/UnLuaExtensions/LuaProtobuf/Source/src/pb.cpp:1759–1767  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1757}
1758
1759static void lpb_fetchtable(lpb_Env *e, const pb_Field *f) {
1760 lua_State *L = e->L;
1761 if (lua53_getfield(L, -1, (const char*)f->name) == LUA_TNIL) {
1762 lua_pop(L, 1);
1763 lua_newtable(L);
1764 lua_pushvalue(L, -1);
1765 lua_setfield(L, -3, (const char*)f->name);
1766 }
1767}
1768
1769static void lpbD_rawfield(lpb_Env *e, const pb_Field *f) {
1770 lua_State *L = e->L;

Callers 1

lpbD_messageFunction · 0.85

Calls 3

lua53_getfieldFunction · 0.85
lua_pushvalueFunction · 0.85
lua_setfieldFunction · 0.85

Tested by

no test coverage detected