| 158 | } |
| 159 | |
| 160 | static inline int pni_class_refcount(const pn_class_t *clazz, void *object) { |
| 161 | if (clazz->refcount) { |
| 162 | return clazz->refcount(object); |
| 163 | } else { |
| 164 | return pni_default_refcount(object); |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | static inline void pni_class_free(const pn_class_t *clazz, void *object) { |
| 169 | if (clazz->free) { |
no test coverage detected