|
|
@@ -156,6 +156,8 @@ private:
|
|
|
|
|
|
#define nassert_raise(message)
|
|
|
|
|
|
+#define enter_debugger_if(condition) ((void)0)
|
|
|
+
|
|
|
#else // NDEBUG
|
|
|
|
|
|
#define nassertr(condition, return_value) \
|
|
|
@@ -185,6 +187,12 @@ private:
|
|
|
|
|
|
#define nassert_raise(message) Notify::ptr()->assert_failure(message, __LINE__, __FILE__)
|
|
|
|
|
|
+#define enter_debugger_if(condition) \
|
|
|
+ if (condition) { \
|
|
|
+ Notify::ptr()->assert_failure(#condition, __LINE__, __FILE__); \
|
|
|
+ __asm { int 3 } \
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
#endif // NDEBUG
|
|
|
|