X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=include%2Furcu%2Fdebug.h;h=41727f378e4368be2cd11c20f682bb3d4588618b;hp=4a7eac9aa70dd72d3be1b5d9036b7700847eeaf8;hb=014775106c60f02818ca755b331f887030bd440f;hpb=375db287452ed4ec9e062e6d670d4cc198a8253d diff --git a/include/urcu/debug.h b/include/urcu/debug.h index 4a7eac9..41727f3 100644 --- a/include/urcu/debug.h +++ b/include/urcu/debug.h @@ -19,14 +19,12 @@ * all copies or substantial portions of the Software. */ -#include +#include -#include - -#if defined(DEBUG_RCU) || defined(CONFIG_RCU_DEBUG) -#define urcu_assert(...) assert(__VA_ARGS__) -#else -#define urcu_assert(...) -#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 */