diff options
Diffstat (limited to 'libkmstest')
-rw-r--r-- | libkmstest/test.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libkmstest/test.h b/libkmstest/test.h index 2700024..3631f2c 100644 --- a/libkmstest/test.h +++ b/libkmstest/test.h @@ -24,3 +24,9 @@ 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) |