Replace assert() -> BT_ASSERT() and some preconditions with BT_ASSERT_PRE()
[babeltrace.git] / lib / ctf-writer / writer.c
index ce884ea6d56e9c1e7d8a1e8708c68f8abb0c59bd..a4ad7fe852bc46ec32a3fbae0e85ad9f1e60a792 100644 (file)
@@ -41,6 +41,7 @@
 #include <babeltrace/endian-internal.h>
 #include <babeltrace/compiler-internal.h>
 #include <babeltrace/compat/uuid-internal.h>
+#include <babeltrace/assert-internal.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/stat.h>
@@ -156,7 +157,7 @@ struct bt_ctf_writer *bt_ctf_writer_create(const char *path)
 
        /* Default to little-endian */
        ret = bt_ctf_writer_set_byte_order(writer, BT_BYTE_ORDER_NATIVE);
-       assert(ret == 0);
+       BT_ASSERT(ret == 0);
 
        /* Create trace directory if necessary and open a metadata file */
        if (g_mkdir_with_parents(path, S_IRWXU | S_IRWXG)) {
This page took 0.023471 seconds and 4 git commands to generate.