summaryrefslogtreecommitdiff
path: root/include/gudhi/Debug_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gudhi/Debug_utils.h')
-rw-r--r--include/gudhi/Debug_utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/gudhi/Debug_utils.h b/include/gudhi/Debug_utils.h
index 7573a9db..8ed3b7b3 100644
--- a/include/gudhi/Debug_utils.h
+++ b/include/gudhi/Debug_utils.h
@@ -33,8 +33,10 @@
// Could assert in release mode, but cmake sets NDEBUG (for "NO DEBUG") in this mode, means assert does nothing.
#ifdef GUDHI_DEBUG
#define GUDHI_CHECK(expression, excpt) if ((expression) == 0) throw excpt
+ #define GUDHI_CHECK_code(CODE) CODE
#else
#define GUDHI_CHECK(expression, excpt) (void) 0
+ #define GUDHI_CHECK_code(CODE)
#endif
#define PRINT(a) std::cerr << #a << ": " << (a) << " (DISP)" << std::endl