summaryrefslogtreecommitdiff
path: root/upb/def.h
diff options
context:
space:
mode:
Diffstat (limited to 'upb/def.h')
-rw-r--r--upb/def.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/upb/def.h b/upb/def.h
index 9571773..66d3c70 100644
--- a/upb/def.h
+++ b/upb/def.h
@@ -117,6 +117,9 @@ INLINE struct _upb_msgdef *upb_fielddef_msgdef(upb_fielddef *f) {
INLINE struct _upb_accessor_vtbl *upb_fielddef_accessor(upb_fielddef *f) {
return f->accessor;
}
+INLINE const char *upb_fielddef_typename(upb_fielddef *f) {
+ return f->def ? f->def->fqname : NULL;
+}
// Only meaningful once the def is in a symtab (returns NULL otherwise, or for
// a fielddef where !upb_hassubdef(f)).
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback