Add a verbose variant of assert that's disabled in final build

feature/pre-code-move
kaetemi 5 years ago committed by Jan Boon
parent 86b809e581
commit 7256109dcb

@ -500,6 +500,15 @@ do { \
#endif // NL_NO_DEBUG #endif // NL_NO_DEBUG
// Same as nlassert and nlverify, but only in DEV build
#if !FINAL_VERSION
#define nlassertverbose(exp) nlassert(exp)
#define nlverifyverbose(exp) nlverify(exp)
#else
#define nlassertverbose(exp) nlassume(exp)
#define nlverifyverbose(exp) do { exp; nlassume(exp); } while (0)
#endif
#define nlunreferenced(identifier) (void)identifier #define nlunreferenced(identifier) (void)identifier
#define nlstop \ #define nlstop \

Loading…
Cancel
Save