Added missing fielddef function implementations for C++.

pull/13171/head
Josh Haberman 6 years ago
parent 865876895d
commit afdd4698ba
  1. 8
      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 ****************************************************************/

Loading…
Cancel
Save