* Copyright 2015 Jérémie Galarneau <jeremie.galarneau@efficios.com>
*/
-#ifndef BABELTRACE_OBJECT_INTERNAL_H
-#define BABELTRACE_OBJECT_INTERNAL_H
+#ifndef BABELTRACE_LIB_OBJECT_H
+#define BABELTRACE_LIB_OBJECT_H
-#include "common/macros.h"
#include "common/assert.h"
#include <stdbool.h>
return;
}
-#ifdef BT_ASSERT_PRE_DEV
- BT_ASSERT_PRE_DEV(obj->is_shared, "Object is not shared: %!+O", obj);
-#endif
-
+ BT_ASSERT_DBG(obj->is_shared);
bt_object_get_ref_no_null_check(obj);
}
return;
}
-#ifdef BT_ASSERT_PRE_DEV
- BT_ASSERT_PRE_DEV(obj->is_shared, "Object is not shared: %!+O", obj);
- BT_ASSERT_PRE_DEV(bt_object_get_ref_count(obj) > 0,
- "Decrementing a reference count set to 0: %!+O", ptr);
-#endif
-
+ BT_ASSERT_DBG(obj->is_shared);
+ BT_ASSERT_DBG(bt_object_get_ref_count(obj) > 0);
bt_object_put_ref_no_null_check(obj);
}
(_var_src) = NULL; \
} while (0)
-#endif /* BABELTRACE_OBJECT_INTERNAL_H */
+#endif /* BABELTRACE_LIB_OBJECT_H */