diff options
Diffstat (limited to 'libc/async_safe/include/async_safe/CHECK.h')
-rw-r--r-- | libc/async_safe/include/async_safe/CHECK.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libc/async_safe/include/async_safe/CHECK.h b/libc/async_safe/include/async_safe/CHECK.h index 46d460c4c..bec89a365 100644 --- a/libc/async_safe/include/async_safe/CHECK.h +++ b/libc/async_safe/include/async_safe/CHECK.h @@ -36,12 +36,12 @@ __BEGIN_DECLS // TODO: replace this with something more like <android-base/logging.h>'s family of macros. -#define CHECK(predicate) \ - do { \ - if (!(predicate)) { \ - async_safe_fatal("%s:%d: %s CHECK '%s' failed", __FILE__, __LINE__, __FUNCTION__, \ - #predicate); \ - } \ - } while (0) +#define CHECK(predicate) \ + do { \ + if (!(predicate)) { \ + async_safe_fatal("%s:%d: %s CHECK '" #predicate "' failed", \ + __FILE__, __LINE__, __FUNCTION__); \ + } \ + } while(0) __END_DECLS |