Skip to content
Snippets Groups Projects
Commit a6ea29dc authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Add NO_ASSERT macro which defines is Assert actually do something

It is valued to true of false
parent ad71175b
Branches
Tags
No related merge requests found
...@@ -62,4 +62,12 @@ class AssertError ...@@ -62,4 +62,12 @@ class AssertError
#endif // NDEBUG #endif // NDEBUG
// stores the current state of Assert macro. This is useful for instance to
// noexcept management of Assert throws
#ifdef NDEBUG
#define NO_ASSERT true
#else // NDEBUG
#define NO_ASSERT false
#endif // NDEBUG
#endif // PASTIS_ASSERT_HPP #endif // PASTIS_ASSERT_HPP
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment