diff options
Diffstat (limited to 'libdimension/compiler.h')
-rw-r--r-- | libdimension/compiler.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libdimension/compiler.h b/libdimension/compiler.h index b1cf60c..d05d775 100644 --- a/libdimension/compiler.h +++ b/libdimension/compiler.h @@ -28,11 +28,11 @@ #include <stdbool.h> -#if DMNSN_PROFILE +#ifdef DMNSN_PROFILE #define dmnsn_likely(test) \ - dmnsn_expect((test), true, DMNSN_FUNC, __FILE__, __LINE__) + dmnsn_expect(!!(test), true, DMNSN_FUNC, __FILE__, __LINE__) #define dmnsn_unlikely(test) \ - dmnsn_expect((test), false, DMNSN_FUNC, __FILE__, __LINE__) + dmnsn_expect(!!(test), false, DMNSN_FUNC, __FILE__, __LINE__) #elif defined(__GNUC__) #define dmnsn_likely(test) __builtin_expect(!!(test), true) #define dmnsn_unlikely(test) __builtin_expect(!!(test), false) |