Always evaluate BT_ASSERT(); add BT_ASSERT_DBG() for debug mode only
[babeltrace.git] / src / lib / trace-ir / field-path.h
index df2931626b4810d250fe15028fd7d688386f67da..99c8f9582cefe7cd7b9eb3bec0bb4fb6e86bbf7b 100644 (file)
@@ -52,8 +52,8 @@ static inline
 struct bt_field_path_item *bt_field_path_borrow_item_by_index_inline(
                const struct bt_field_path *field_path, uint64_t index)
 {
-       BT_ASSERT(field_path);
-       BT_ASSERT(index < field_path->items->len);
+       BT_ASSERT_DBG(field_path);
+       BT_ASSERT_DBG(index < field_path->items->len);
        return &g_array_index(field_path->items, struct bt_field_path_item,
                index);
 }
This page took 0.024629 seconds and 4 git commands to generate.