libcheck: make the definition of fail not fail with non GCC compilers

This commit is contained in:
Vincent Penquerc'h 2012-01-20 18:06:04 +00:00
parent 8accd77659
commit 28d5e81503

View file

@ -232,7 +232,7 @@ static void __testname (int _i CK_ATTRIBUTE_UNUSED)\
"Failure '"#expr"' occured" , ## __VA_ARGS__, NULL) "Failure '"#expr"' occured" , ## __VA_ARGS__, NULL)
/* Always fail */ /* Always fail */
#define fail(...) _fail_unless(0, __FILE__, __LINE__, "Failed" , ## __VA_ARGS__, NULL) #define fail(...) _fail_unless(0, __FILE__, __LINE__, "Failed" __VA_ARGS__, NULL)
/* Non macro version of #fail_unless, with more complicated interface */ /* Non macro version of #fail_unless, with more complicated interface */
void CK_EXPORT _fail_unless (int result, const char *file, void CK_EXPORT _fail_unless (int result, const char *file,