projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add `urcu_posix_assert()` as `assert()` replacement
[urcu.git]
/
include
/
urcu
/
debug.h
diff --git
a/include/urcu/debug.h
b/include/urcu/debug.h
index 327bd92331088d2bf29df45d85c329109100dad6..41727f378e4368be2cd11c20f682bb3d4588618b 100644
(file)
--- a/
include/urcu/debug.h
+++ b/
include/urcu/debug.h
@@
-19,12
+19,12
@@
* all copies or substantial portions of the Software.
*/
* all copies or substantial portions of the Software.
*/
-#include <assert.h>
+#include <
urcu/
assert.h>
-#ifdef DEBUG_RCU
-
#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 */
#endif /* _URCU_DEBUG_H */
This page took
0.023421 seconds
and
4
git commands to generate.