]>
git.saurik.com Git - apple/xnu.git/blob - tools/tests/perf_index/fail.h
4 #define TOSTRING_HELPER(x) #x
5 #define TOSTRING(x) TOSTRING_HELPER(x)
7 #define PERFINDEX_FAILURE -1
8 #define PERFINDEX_SUCCESS 0
10 extern char* error_str
;
12 #define FAIL(message) do {\
13 error_str = message " at " __FILE__ ": " TOSTRING(__LINE__);\
14 return PERFINDEX_FAILURE;\
17 #define VERIFY(condition, fail_message) do {\
18 if(!(condition)) FAIL(fail_message);\