diff options
author | John-Mark Bell <jmb@netsurf-browser.org> | 2015-07-18 17:45:30 +0100 |
---|---|---|
committer | John-Mark Bell <jmb@netsurf-browser.org> | 2015-07-18 17:45:45 +0100 |
commit | 2ab63a787e65742bd2ddd65633cefed51a2607a7 (patch) | |
tree | d8e8ba1d643256e0f868b9b4c24f5437ac498ce1 | |
parent | 884502f39d98b556bce0c3af66ac82f33b2cff82 (diff) | |
download | libcss-2ab63a787e65742bd2ddd65633cefed51a2607a7.tar.gz |
Testutils: undef assert before use
-rw-r--r-- | test/testutils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/testutils.h b/test/testutils.h index 1a13e5b..70d803d 100644 --- a/test/testutils.h +++ b/test/testutils.h @@ -28,6 +28,7 @@ void __assert2(const char *expr, const char *function, exit(EXIT_FAILURE); } +#undef assert #define assert(expr) \ ((void) ((expr) || (__assert2 (#expr, __func__, __FILE__, __LINE__), 0))) |