Always evaluate BT_ASSERT(); add BT_ASSERT_DBG() for debug mode only
[babeltrace.git] / src / lib / trace-ir / clock-class.h
index b39183c2c94db206160cc61b6e022e846aa45700..639cf90e1ce65437bf620f58d2b3c809b64ad5c1 100644 (file)
@@ -42,6 +42,9 @@
 struct bt_clock_class {
        struct bt_object base;
 
+       /* Owned by this */
+       struct bt_value *user_attributes;
+
        struct {
                GString *str;
 
@@ -111,8 +114,7 @@ int bt_clock_class_clock_value_from_ns_from_origin(
                struct bt_clock_class *cc, int64_t ns_from_origin,
                uint64_t *raw_value)
 {
-       BT_ASSERT(cc);
-
+       BT_ASSERT_DBG(cc);
        return bt_common_clock_value_from_ns_from_origin(cc->offset_seconds,
                cc->offset_cycles, cc->frequency, ns_from_origin,
                raw_value) ? BT_FUNC_STATUS_OVERFLOW_ERROR : BT_FUNC_STATUS_OK;
This page took 0.024497 seconds and 4 git commands to generate.