summaryrefslogtreecommitdiff
path: root/src/assert.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/assert.hh')
-rw-r--r--src/assert.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/assert.hh b/src/assert.hh
index 975ddca1..0ec5db90 100644
--- a/src/assert.hh
+++ b/src/assert.hh
@@ -15,6 +15,8 @@ private:
String m_message;
};
+void on_assert_failed(const String& message);
+
}
#define STRINGIFY(X) #X
@@ -27,6 +29,6 @@ private:
#define assert(condition) \
if (not (condition)) \
- throw assert_failed("assert failed \"" #condition "\" at " __FILE__ ":" TOSTRING(__LINE__))
+ on_assert_failed("assert failed \"" #condition "\" at " __FILE__ ":" TOSTRING(__LINE__))
#endif // assert_hh_INCLUDED