Improve test coverage.
[open-adventure.git] / common.h
index 59e87efaec77558f0b90c8eb4e36bed7d57bcc95..0e865c482707af25dceb6fcaee7d48f799e5b201 100644 (file)
--- a/common.h
+++ b/common.h
@@ -35,12 +35,8 @@ enum bugtype {
    ACTION_RETURNED_PHASE_CODE_BEYOND_END_OF_SWITCH,       // 100
 };
 
-static inline void bug(enum bugtype num, const char *error_string) __attribute__((__noreturn__));
-static inline void bug(enum bugtype num, const char *error_string)
-{
-   fprintf(stderr, "Fatal error %d, %s.\n", num, error_string);
-   exit(EXIT_FAILURE);
-}
+/* Alas, declaring this static confuses the coverage analyzer */
+void bug(enum bugtype, const char *) __attribute__((__noreturn__));
 
 #define BUG(x) bug(x, #x)