Replace assert() -> BT_ASSERT() and some preconditions with BT_ASSERT_PRE()
[babeltrace.git] / include / babeltrace / ctf-ir / event-class-internal.h
index 160200bfcda4cd8314dc40cb26423bcd8cf19dd8..81117435e6d2e967a283610d2427e120769c7128 100644 (file)
@@ -36,6 +36,7 @@
 #include <babeltrace/ctf-ir/stream.h>
 #include <babeltrace/ctf-ir/event-class.h>
 #include <babeltrace/object-internal.h>
+#include <babeltrace/assert-internal.h>
 #include <glib.h>
 
 struct bt_event_class {
@@ -77,7 +78,7 @@ static inline
 struct bt_stream_class *bt_event_class_borrow_stream_class(
                struct bt_event_class *event_class)
 {
-       assert(event_class);
+       BT_ASSERT(event_class);
        return (void *) bt_object_borrow_parent(event_class);
 }
 
This page took 0.023607 seconds and 4 git commands to generate.