]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android/external-libkmsxx.git/commitdiff
libkmstest: add EXIT()
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 12 Nov 2015 19:48:35 +0000 (21:48 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 13 Nov 2015 15:56:08 +0000 (17:56 +0200)
libkmstest/test.h

index 2700024c15ec1c29c030cfa72a08a1ece1f7c72d..3631f2ca2f384013ea3f7b12e7c5b7227bf215d3 100644 (file)
@@ -24,3 +24,9 @@
                fprintf(stderr, "%s:%d: %s:\n" fmt "\n", __FILE__, __LINE__, __PRETTY_FUNCTION__, ##__VA_ARGS__); \
                abort(); \
        }
                fprintf(stderr, "%s:%d: %s:\n" fmt "\n", __FILE__, __LINE__, __PRETTY_FUNCTION__, ##__VA_ARGS__); \
                abort(); \
        }
+
+#define EXIT(fmt, ...) \
+       do { \
+               fprintf(stderr, fmt "\n", ##__VA_ARGS__); \
+               exit(-1); \
+       } while(0)