Protocol Buffers - Google's data interchange format (grpc依赖) https://developers.google.com/protocol-buffers/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

19 lines
408 B

#undef NDEBUG /* ensure tests always assert. */
#include "upb/def.h"
#include <stdlib.h>
int main() {
upb_symtab *s = upb_symtab_new();
// Will be empty atm since we haven't added anything to the symtab.
int count;
upb_def **defs = upb_symtab_getdefs(s, &count, UPB_DEF_ANY);
for (int i = 0; i < count; i++) {
upb_def_unref(defs[i]);
}
free(defs);
upb_symtab_unref(s);
return 0;
}