void upb_msgdef_checkref(const upb_msgdef *m, const void *owner) { upb_def_checkref(upb_upcast(m), owner); }
void upb_fielddef_checkref(const upb_fielddef *f, const void *owner) { upb_def_checkref(upb_upcast(f), owner); }
void upb_enumdef_checkref(const upb_enumdef *e, const void *owner) { upb_def_checkref(upb_upcast(e), owner); }
void upb_fielddef_checkref(const upb_fielddef *f, const void *owner) { upb_def_checkref(UPB_UPCAST(f), owner); }
void upb_enumdef_checkref(const upb_enumdef *e, const void *owner) { upb_def_checkref(UPB_UPCAST(e), owner); }
void upb_msgdef_checkref(const upb_msgdef *m, const void *owner) { upb_def_checkref(UPB_UPCAST(m), owner); }