reorganize sources
[protos/libecoli.git] / lib / ecoli_assert.c
diff --git a/lib/ecoli_assert.c b/lib/ecoli_assert.c
deleted file mode 100644 (file)
index a36d6f6..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-/* SPDX-License-Identifier: BSD-3-Clause
- * Copyright 2016, Olivier MATZ <zer0@droids-corp.org>
- */
-
-#include <stdarg.h>
-#include <stdio.h>
-#include <stdbool.h>
-#include <stdlib.h>
-
-#include <ecoli_assert.h>
-
-void __ec_assert_print(bool expr, const char *expr_str, const char *format, ...)
-{
-       va_list ap;
-
-       if (expr)
-               return;
-
-       /* LCOV_EXCL_START */
-       va_start(ap, format);
-       fprintf(stderr, "assertion failed: '%s' is false\n", expr_str);
-       vfprintf(stderr, format, ap);
-       va_end(ap);
-       abort();
-       /* LCOV_EXCL_END */
-}