Always evaluate BT_ASSERT(); add BT_ASSERT_DBG() for debug mode only
[babeltrace.git] / src / lib / object-pool.h
index 02118999f6b8e8a54ccf99b63c5475012ca25b03..1c69b8c7b5dde774af36548b7d1abe530cf96b48 100644 (file)
@@ -111,7 +111,7 @@ void *bt_object_pool_create_object(struct bt_object_pool *pool)
 {
        struct bt_object *obj;
 
-       BT_ASSERT(pool);
+       BT_ASSERT_DBG(pool);
        BT_LOGT("Creating object from pool: pool-addr=%p, pool-size=%zu, pool-cap=%u",
                pool, pool->size, pool->objects->len);
 
@@ -144,8 +144,8 @@ void bt_object_pool_recycle_object(struct bt_object_pool *pool, void *obj)
 {
        struct bt_object *bt_obj = obj;
 
-       BT_ASSERT(pool);
-       BT_ASSERT(obj);
+       BT_ASSERT_DBG(pool);
+       BT_ASSERT_DBG(obj);
        BT_LOGT("Recycling object: pool-addr=%p, pool-size=%zu, pool-cap=%u, obj-addr=%p",
                pool, pool->size, pool->objects->len, obj);
 
This page took 0.025128 seconds and 4 git commands to generate.