Fix: lib: add NULL check for destroy_listeners in destroy_component_class
[babeltrace.git] / src / lib / graph / interrupter.c
index 6e38226421f3e2a16d8689674b0cc01324108afb..75237d3b0550a4ca2198d9e8fa5341caaf4bf046 100644 (file)
@@ -12,7 +12,7 @@
 #include <babeltrace2/babeltrace.h>
 
 #include "interrupter.h"
-#include "lib/assert-pre.h"
+#include "lib/assert-cond.h"
 
 static
 void destroy_interrupter(struct bt_object *obj)
@@ -43,19 +43,19 @@ end:
 
 void bt_interrupter_set(struct bt_interrupter *intr)
 {
-       BT_ASSERT_PRE_NON_NULL(intr, "Interrupter");
+       BT_ASSERT_PRE_INTR_NON_NULL(intr);
        intr->is_set = true;
 }
 
 void bt_interrupter_reset(struct bt_interrupter *intr)
 {
-       BT_ASSERT_PRE_NON_NULL(intr, "Interrupter");
+       BT_ASSERT_PRE_INTR_NON_NULL(intr);
        intr->is_set = false;
 }
 
 bt_bool bt_interrupter_is_set(const struct bt_interrupter *intr)
 {
-       BT_ASSERT_PRE_NON_NULL(intr, "Interrupter");
+       BT_ASSERT_PRE_INTR_NON_NULL(intr);
        return (bt_bool) intr->is_set;
 }
 
This page took 0.024319 seconds and 4 git commands to generate.