projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: add internal object pool API and use it; adapt plugins/tests
[babeltrace.git]
/
lib
/
graph
/
notification
/
heap.c
diff --git
a/lib/graph/notification/heap.c
b/lib/graph/notification/heap.c
index fc0bce81b65e5d1c76d080f92aed0a5d743722bb..f2d87a8bffb947298fd3e53d7115e912cf56c947 100644
(file)
--- a/
lib/graph/notification/heap.c
+++ b/
lib/graph/notification/heap.c
@@
-26,10
+26,10
@@
* SOFTWARE.
*/
* SOFTWARE.
*/
-#include <assert.h>
#include <stddef.h>
#include <babeltrace/compiler-internal.h>
#include <babeltrace/graph/notification-heap-internal.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
#ifdef DEBUG_HEAP
static
@@
-42,7
+42,7
@@
void check_heap(struct bt_notification_heap *heap)
}
for (i = 1; i < heap->count; i++) {
}
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));
}
g_ptr_array_index(heap->ptrs, 0),
heap->compare_data));
}
This page took
0.023758 seconds
and
4
git commands to generate.