| 1227 | } |
| 1228 | |
| 1229 | static 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 | |
| 1237 | static int lpb_pushfield(lua_State *L, const pb_Type *t, const pb_Field *f) { |
| 1238 | if (f == NULL) return 0; |
no test coverage detected