projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename `urcu_assert()` to `urcu_assert_debug()`
[userspace-rcu.git]
/
include
/
urcu
/
debug.h
diff --git
a/include/urcu/debug.h
b/include/urcu/debug.h
index 4a7eac9aa70dd72d3be1b5d9036b7700847eeaf8..1920a7dd4f0a61c69ecd416c767d8ef9db73bb1d 100644
(file)
--- a/
include/urcu/debug.h
+++ b/
include/urcu/debug.h
@@
-24,9
+24,15
@@
#include <urcu/config.h>
#if defined(DEBUG_RCU) || defined(CONFIG_RCU_DEBUG)
#include <urcu/config.h>
#if defined(DEBUG_RCU) || defined(CONFIG_RCU_DEBUG)
-#
define urcu_assert(...)
assert(__VA_ARGS__)
+#
define urcu_assert_debug(...)
assert(__VA_ARGS__)
#else
#else
-#
define urcu_assert
(...)
+#
define urcu_assert_debug
(...)
#endif
#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 */
#endif /* _URCU_DEBUG_H */
This page took
0.024593 seconds
and
4
git commands to generate.