summaryrefslogtreecommitdiff
path: root/upb/refcounted.h
diff options
context:
space:
mode:
Diffstat (limited to 'upb/refcounted.h')
-rw-r--r--upb/refcounted.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/upb/refcounted.h b/upb/refcounted.h
index 54c1127..115fc43 100644
--- a/upb/refcounted.h
+++ b/upb/refcounted.h
@@ -103,10 +103,11 @@ struct upb_refcounted {
#ifdef UPB_DEBUG_REFS
extern upb_alloc upb_alloc_debugrefs;
-#define UPB_REFCOUNT_INIT(refs, ref2s) \
- {&static_refcount, NULL, NULL, 0, true, refs, ref2s}
+#define UPB_REFCOUNT_INIT(vtbl, refs, ref2s) \
+ {&static_refcount, NULL, vtbl, 0, true, refs, ref2s}
#else
-#define UPB_REFCOUNT_INIT(refs, ref2s) {&static_refcount, NULL, NULL, 0, true}
+#define UPB_REFCOUNT_INIT(vtbl, refs, ref2s) \
+ {&static_refcount, NULL, vtbl, 0, true}
#endif
UPB_BEGIN_EXTERN_C
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback