X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Flib%2Fobject.h;h=75c13e1571e00e96d6056ca870329518f3d8aabc;hb=bdb288b3e94e412a33c8647d44f6cfac66ca0665;hp=2d9fc602833e66a61f0fc3158466bf08e40bfea0;hpb=185ecf645233ced089ad72b060a420e8f6f7edeb;p=babeltrace.git diff --git a/src/lib/object.h b/src/lib/object.h index 2d9fc602..75c13e15 100644 --- a/src/lib/object.h +++ b/src/lib/object.h @@ -345,8 +345,8 @@ void bt_object_get_ref(const void *ptr) return; } -#ifdef BT_ASSERT_PRE - BT_ASSERT_PRE(obj->is_shared, "Object is not shared: %!+O", obj); +#ifdef BT_ASSERT_PRE_DEV + BT_ASSERT_PRE_DEV(obj->is_shared, "Object is not shared: %!+O", obj); #endif bt_object_get_no_null_check(obj); @@ -361,9 +361,9 @@ void bt_object_put_ref(const void *ptr) return; } -#ifdef BT_ASSERT_PRE - BT_ASSERT_PRE(obj->is_shared, "Object is not shared: %!+O", obj); - BT_ASSERT_PRE(bt_object_get_ref_count(obj) > 0, +#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