To ensure there is no stale code that can be broken over time.
Signed-off-by: Anders Roxell <[email protected]>
---
platform/linux-generic/include/api/odp_debug.h | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/platform/linux-generic/include/api/odp_debug.h
b/platform/linux-generic/include/api/odp_debug.h
index 0a20430..c9b2edd 100644
--- a/platform/linux-generic/include/api/odp_debug.h
+++ b/platform/linux-generic/include/api/odp_debug.h
@@ -57,12 +57,11 @@ extern "C" {
/**
* Runtime assertion-macro - aborts if 'cond' is false.
*/
-#ifndef ODP_NO_DEBUG
#define ODP_ASSERT(cond, msg) \
- do { if (!(cond)) {ODP_ERR("%s\n", msg); abort(); } } while (0)
-#else
-#define ODP_ASSERT(cond, msg)
-#endif
+ do { if ((ODP_DEBUG == 1) && (!(cond))) { \
+ ODP_ERR("%s\n", msg); \
+ abort(); } \
+ } while (0)
/**
* Compile time assertion-macro - fail compilation if cond is false.
--
2.1.0
_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp