Replace assert() -> BT_ASSERT() and some preconditions with BT_ASSERT_PRE()
[babeltrace.git] / include / babeltrace / graph / graph-internal.h
index 09c8b111acf3bae2d465bc4658517dfcf5fbf9c4..c8be19aace1d6d91876a6641c7fd4fb66432e6b7 100644 (file)
@@ -31,8 +31,8 @@
 #include <babeltrace/graph/component-status.h>
 #include <babeltrace/babeltrace-internal.h>
 #include <babeltrace/object-internal.h>
+#include <babeltrace/assert-internal.h>
 #include <stdlib.h>
-#include <assert.h>
 #include <glib.h>
 
 struct bt_component;
@@ -85,7 +85,7 @@ struct bt_graph {
 static inline
 void bt_graph_set_can_consume(struct bt_graph *graph, bt_bool can_consume)
 {
-       assert(graph);
+       BT_ASSERT(graph);
        graph->can_consume = can_consume;
 }
 
This page took 0.02381 seconds and 4 git commands to generate.