summaryrefslogtreecommitdiff
path: root/upb
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2019-01-26 20:13:12 -0800
committerJosh Haberman <jhaberman@gmail.com>2019-01-26 20:13:12 -0800
commitafdd4698bafa18057f0070d991f6202c6ea7a001 (patch)
tree7991fc00061da9cb297c1cdb782ab9ece656edcb /upb
parent865876895d5a35bfa4f4135b1f545b73fb2faaac (diff)
Added missing fielddef function implementations for C++.
Diffstat (limited to 'upb')
-rw-r--r--upb/def.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/upb/def.h b/upb/def.h
index f2b7032..13e9611 100644
--- a/upb/def.h
+++ b/upb/def.h
@@ -652,6 +652,10 @@ class upb::MessageDefPtr {
const upb_msgdef* ptr_;
};
+inline upb::MessageDefPtr upb::FieldDefPtr::message_subdef() const {
+ return MessageDefPtr(upb_fielddef_msgsubdef(ptr_));
+}
+
#endif /* __cplusplus */
/* upb_enumdef ****************************************************************/
@@ -745,6 +749,10 @@ class upb::EnumDefPtr {
const upb_enumdef *ptr_;
};
+inline upb::EnumDefPtr upb::FieldDefPtr::enum_subdef() const {
+ return EnumDefPtr(upb_fielddef_enumsubdef(ptr_));
+}
+
#endif /* __cplusplus */
/* upb_filedef ****************************************************************/
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback