common: add print_trace() for backtracing
[c11tester.git] / common.h
index 9794a92e8e8ea33a494b2772869b5171afa1bbe8..80bc9ad6e8c6977fb3622b8754c1982cf64c25f5 100644 (file)
--- a/common.h
+++ b/common.h
@@ -26,4 +26,8 @@ do { \
        } \
 } while (0);
 
+#define error_msg(...) fprintf(stderr, "Error: " __VA_ARGS__)
+
+void print_trace(void);
+
 #endif /* __COMMON_H__ */