use helper in cmd node
[protos/libecoli.git] / lib / ecoli_assert.c
index 44499bc..a36d6f6 100644 (file)
@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: BSD-3-Clause
- * Copyright (c) 2016, Olivier MATZ <zer0@droids-corp.org>
+ * Copyright 2016, Olivier MATZ <zer0@droids-corp.org>
  */
 
 #include <stdarg.h>
@@ -16,9 +16,11 @@ void __ec_assert_print(bool expr, const char *expr_str, const char *format, ...)
        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 */
 }