Always evaluate BT_ASSERT(); add BT_ASSERT_DBG() for debug mode only
[babeltrace.git] / src / ctf-writer / object-pool.h
index 0d1ef70ef1a8a669f0d77f5926b204c0853ba06e..64e8477b144a5f79afbb6af2b7577601d51c719b 100644 (file)
@@ -108,7 +108,7 @@ void *bt_ctf_object_pool_create_object(struct bt_ctf_object_pool *pool)
 {
        struct bt_ctf_object *obj;
 
-       BT_ASSERT(pool);
+       BT_ASSERT_DBG(pool);
 
 #ifdef BT_LOGT
        BT_LOGT("Creating object from pool: pool-addr=%p, pool-size=%zu, pool-cap=%u",
@@ -150,8 +150,8 @@ void bt_ctf_object_pool_recycle_object(struct bt_ctf_object_pool *pool, void *ob
 {
        struct bt_ctf_object *bt_obj = obj;
 
-       BT_ASSERT(pool);
-       BT_ASSERT(obj);
+       BT_ASSERT_DBG(pool);
+       BT_ASSERT_DBG(obj);
 
 #ifdef BT_LOGT
        BT_LOGT("Recycling object: pool-addr=%p, pool-size=%zu, pool-cap=%u, obj-addr=%p",
This page took 0.023547 seconds and 4 git commands to generate.