split these defs out of other stuff
[c11tester.git] / common.h
index 656ea3798dde73d08b168fdfe54f5d4c72dcc04d..0db1cfe15f722dd8bd487aa98cdb3d16b7cfb79f 100644 (file)
--- a/common.h
+++ b/common.h
@@ -1,3 +1,7 @@
+/** @file common.h
+ *  @brief General purpose macros.
+ */
+
 #ifndef __COMMON_H__
 #define __COMMON_H__
 
@@ -23,7 +27,7 @@
 do { \
        if (!(expr)) { \
                fprintf(stderr, "Error: assertion failed in %s at line %d\n", __FILE__, __LINE__); \
-               exit(1); \
+               exit(EXIT_FAILURE); \
        } \
 } while (0);