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

Function lpb_newmsgtable

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

Source from the content-addressed store, hash-verified

1164static void lpb_pushtypetable(lua_State *L, lpb_State *LS, const pb_Type *t);
1165
1166static void lpb_newmsgtable(lua_State *L, const pb_Type *t)
1167{ lua_createtable(L, 0, t->field_count - t->oneof_field + t->oneof_count*2); }
1168
1169LUALIB_API const pb_Type *lpb_type(lpb_State *LS, pb_Slice s) {
1170 const pb_Type *t;

Callers 2

lpb_pushdefmetaFunction · 0.85
lpb_pushtypetableFunction · 0.85

Calls 1

lua_createtableFunction · 0.85

Tested by

no test coverage detected