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

Function lpb_pushtype

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

Source from the content-addressed store, hash-verified

1227}
1228
1229static int lpb_pushtype(lua_State *L, const pb_Type *t) {
1230 if (t == NULL) return 0;
1231 lua_pushstring(L, (const char*)t->name);
1232 lua_pushstring(L, (const char*)t->basename);
1233 lua_pushstring(L, t->is_map ? "map" : t->is_enum ? "enum" : "message");
1234 return 3;
1235}
1236
1237static int lpb_pushfield(lua_State *L, const pb_Type *t, const pb_Field *f) {
1238 if (f == NULL) return 0;

Callers 2

Lpb_typesiterFunction · 0.85
Lpb_typeFunction · 0.85

Calls 1

lua_pushstringFunction · 0.85

Tested by

no test coverage detected