projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace assert() -> BT_ASSERT() and some preconditions with BT_ASSERT_PRE()
[babeltrace.git]
/
lib
/
prio_heap
/
prio_heap.c
diff --git
a/lib/prio_heap/prio_heap.c
b/lib/prio_heap/prio_heap.c
index 58e3de68b5f0e93d4260e48841b1a698e3c897bc..ec5d1f97f6d9fddd1b3ea6b9de20022657f1ba09 100644
(file)
--- a/
lib/prio_heap/prio_heap.c
+++ b/
lib/prio_heap/prio_heap.c
@@
-25,12
+25,12
@@
* SOFTWARE.
*/
* SOFTWARE.
*/
-#include <babeltrace/prio
_heap
.h>
+#include <babeltrace/prio
-heap-internal
.h>
#include <babeltrace/babeltrace-internal.h>
#include <babeltrace/babeltrace-internal.h>
+#include <babeltrace/assert-internal.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
-#include <assert.h>
#ifdef DEBUG_HEAP
void check_heap(const struct ptr_heap *heap)
#ifdef DEBUG_HEAP
void check_heap(const struct ptr_heap *heap)
@@
-41,7
+41,7
@@
void check_heap(const struct ptr_heap *heap)
return;
for (i = 1; i < heap->len; i++)
return;
for (i = 1; i < heap->len; i++)
-
assert
(!heap->gt(heap->ptrs[i], heap->ptrs[0]));
+
BT_ASSERT
(!heap->gt(heap->ptrs[i], heap->ptrs[0]));
}
#endif
}
#endif
This page took
0.034881 seconds
and
4
git commands to generate.