Replace assert() -> BT_ASSERT() and some preconditions with BT_ASSERT_PRE()
[babeltrace.git] / lib / graph / notification / heap.c
index fc0bce81b65e5d1c76d080f92aed0a5d743722bb..f2d87a8bffb947298fd3e53d7115e912cf56c947 100644 (file)
  * SOFTWARE.
  */
 
-#include <assert.h>
 #include <stddef.h>
 #include <babeltrace/compiler-internal.h>
 #include <babeltrace/graph/notification-heap-internal.h>
+#include <babeltrace/assert-internal.h>
 
 #ifdef DEBUG_HEAP
 static
@@ -42,7 +42,7 @@ void check_heap(struct bt_notification_heap *heap)
        }
 
        for (i = 1; i < heap->count; i++) {
-               assert(!heap->compare(g_ptr_array_index(heap->ptrs, i),
+               BT_ASSERT(!heap->compare(g_ptr_array_index(heap->ptrs, i),
                                g_ptr_array_index(heap->ptrs, 0),
                                heap->compare_data));
        }
This page took 0.0232 seconds and 4 git commands to generate.