lib: use common precond. assert. macros from `assert-cond.h` thru lib
[babeltrace.git] / src / lib / graph / component-sink.c
index 1f4a5a66589533e65d83c10d5849788f31058f37..d9d33cc9ab205c6a5de9e7722c10f25e1c8e7e16 100644 (file)
@@ -9,8 +9,7 @@
 #include "lib/logging.h"
 
 #include "common/assert.h"
-#include "lib/assert-pre.h"
-#include "lib/assert-post.h"
+#include "lib/assert-cond.h"
 #include "compat/compiler.h"
 #include <babeltrace2/value.h>
 #include <babeltrace2/graph/self-component.h>
@@ -52,7 +51,7 @@ bt_component_sink_borrow_class_const(
 {
        struct bt_component_class *cls;
 
-       BT_ASSERT_PRE_DEV_NON_NULL(component, "Component");
+       BT_ASSERT_PRE_DEV_COMP_NON_NULL(component);
 
        cls = component->parent.class;
 
@@ -136,7 +135,7 @@ bt_bool bt_self_component_sink_is_interrupted(
 {
        struct bt_component *comp = (void *) self_comp;
 
-       BT_ASSERT_PRE_NON_NULL(comp, "Component");
+       BT_ASSERT_PRE_COMP_NON_NULL(comp);
        return (bt_bool) bt_graph_is_interrupted(
                bt_component_borrow_graph(comp));
 }
This page took 0.023728 seconds and 4 git commands to generate.