#define BT_LOG_TAG "REF"
#include <babeltrace/lib-logging-internal.h>
+#include <babeltrace/assert-pre-internal.h>
#include <babeltrace/ref-internal.h>
#include <babeltrace/object-internal.h>
goto end;
}
+ BT_ASSERT_PRE(obj->is_shared, "Object is not shared: addr=%p", obj);
+
if (unlikely(!obj->ref_count.release)) {
goto end;
}
return;
}
+ BT_ASSERT_PRE(obj->is_shared, "Object is not shared: addr=%p", obj);
+
if (unlikely(!obj->ref_count.release)) {
return;
}