X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Flib%2Fobject.h;h=2fbe7f02a2d275f0cdcaa9f373ff008e31dbd0b6;hb=79545cc9503203b8508867244ef0265257fd3e84;hp=c0180dce76cda3dc43ae9aea7b74a30fd814c6a4;hpb=0235b0db7de5bcacdb3650c92461f2ce5eb2143d;p=babeltrace.git diff --git a/src/lib/object.h b/src/lib/object.h index c0180dce..2fbe7f02 100644 --- a/src/lib/object.h +++ b/src/lib/object.h @@ -317,10 +317,7 @@ void bt_object_get_ref(const void *ptr) 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); } @@ -333,12 +330,8 @@ void bt_object_put_ref(const void *ptr) 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); }