Replace assert() -> BT_ASSERT() and some preconditions with BT_ASSERT_PRE()
[babeltrace.git] / include / babeltrace / compat / stdio-internal.h
index 9d8b52413465c3d24bdc49027ebaf20eca0ebeb0..332d74da2ecec63a5ee1eb06e551121626d15d75 100644 (file)
@@ -25,9 +25,9 @@
 
 #include <stdio.h>
 #include <errno.h>
-#include <assert.h>
 #include <stdlib.h>
 #include <limits.h>
+#include <babeltrace/assert-internal.h>
 
 #define BT_GETLINE_MINBUFLEN   64
 
@@ -94,7 +94,7 @@ ssize_t bt_getline(char **lineptr, size_t *n, FILE *stream)
                                /* ferror() is set, errno set by fgetc(). */
                                return -1;
                        }
-                       assert(feof(stream));
+                       BT_ASSERT(feof(stream));
                        found_eof = 1;
                        break;
                }
This page took 0.0245919999999999 seconds and 4 git commands to generate.