X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=include%2Furcu%2Fdebug.h;h=1920a7dd4f0a61c69ecd416c767d8ef9db73bb1d;hp=14b50b6a1d539dd67e978ce929c8758a06ca7744;hb=2a27e9319bacc9bc98f38afb7e4f050601ab979b;hpb=d4e640c06c2c999d5fc8f8375bc2f61da06c9cda diff --git a/include/urcu/debug.h b/include/urcu/debug.h index 14b50b6..1920a7d 100644 --- a/include/urcu/debug.h +++ b/include/urcu/debug.h @@ -21,10 +21,18 @@ #include +#include + #if defined(DEBUG_RCU) || defined(CONFIG_RCU_DEBUG) -#define urcu_assert(...) assert(__VA_ARGS__) +# define urcu_assert_debug(...) assert(__VA_ARGS__) #else -#define urcu_assert(...) +# define urcu_assert_debug(...) #endif +/* + * For backward compatibility reasons, this file must expose the urcu_assert() + * macro. + */ +#define urcu_assert(_cond) urcu_assert_debug(_cond) + #endif /* _URCU_DEBUG_H */