Replace assert() -> BT_ASSERT() and some preconditions with BT_ASSERT_PRE()
[babeltrace.git] / lib / ctf-ir / field-path.c
index 32ba02ae1ecaabd552c9bfb0c91eb53cb5570fe1..61a57fe3864a5c97dedd599865e4a13b9ca3e259 100644 (file)
@@ -35,6 +35,7 @@
 #include <limits.h>
 #include <stdint.h>
 #include <inttypes.h>
+#include <babeltrace/assert-internal.h>
 #include <glib.h>
 
 static
@@ -98,7 +99,7 @@ struct bt_field_path *bt_field_path_copy(
 {
        struct bt_field_path *new_path;
 
-       assert(path);
+       BT_ASSERT(path);
        BT_LOGD("Copying field path: addr=%p, index-count=%u",
                path, path->indexes->len);
        new_path = bt_field_path_create();
This page took 0.024845 seconds and 4 git commands to generate.