Always evaluate BT_ASSERT(); add BT_ASSERT_DBG() for debug mode only
[babeltrace.git] / src / lib / trace-ir / event-class.h
index b368a286ae6e7ccba332d28d103abd98d4fd1018..1b9bfea30c05f6e7453673a22331c1df31a044ee 100644 (file)
@@ -27,7 +27,7 @@
 #include "lib/assert-pre.h"
 #include <babeltrace2/trace-ir/field-class.h>
 #include <babeltrace2/trace-ir/field.h>
-#include "common/babeltrace.h"
+#include "common/macros.h"
 #include <babeltrace2/value.h>
 #include <babeltrace2/trace-ir/stream-class.h>
 #include <babeltrace2/trace-ir/stream.h>
@@ -46,6 +46,9 @@ struct bt_event_class {
        struct bt_field_class *specific_context_fc;
        struct bt_field_class *payload_fc;
 
+       /* Owned by this */
+       struct bt_value *user_attributes;
+
        struct {
                GString *str;
 
@@ -82,7 +85,7 @@ static inline
 struct bt_stream_class *bt_event_class_borrow_stream_class_inline(
                const struct bt_event_class *event_class)
 {
-       BT_ASSERT(event_class);
+       BT_ASSERT_DBG(event_class);
        return (void *) bt_object_borrow_parent(&event_class->base);
 }
 
This page took 0.023696 seconds and 4 git commands to generate.