Replace assert() -> BT_ASSERT() and some preconditions with BT_ASSERT_PRE()
[babeltrace.git] / plugins / ctf / common / metadata / parser.y
index 83080063fd4f66c7a4bca2627fc1b0ec4928952b..2d1f3831c05490d5a65830de76f2378299b94da6 100644 (file)
@@ -38,6 +38,7 @@
 #include <errno.h>
 #include <inttypes.h>
 #include <babeltrace/list-internal.h>
+#include <babeltrace/assert-internal.h>
 #include "scanner.h"
 #include "parser.h"
 #include "ast.h"
@@ -163,7 +164,7 @@ int parse_base_sequence(const char *src, size_t len, size_t pos,
                        return -1;
                }
        }
-       assert(nr_char > 0);
+       BT_ASSERT(nr_char > 0);
        buffer[nr_char] = '\0';
        *buf_len = nr_char;
        return 0;
This page took 0.023875 seconds and 4 git commands to generate.