summaryrefslogtreecommitdiff
path: root/libraries/euler/cassert.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/euler/cassert.cpp')
-rw-r--r--libraries/euler/cassert.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/libraries/euler/cassert.cpp b/libraries/euler/cassert.cpp
new file mode 100644
index 0000000..e811b38
--- /dev/null
+++ b/libraries/euler/cassert.cpp
@@ -0,0 +1,16 @@
+#include <cassert>
+
+namespace euler {
+
+ [[noreturn]] void assert_failed(
+ const char *, const char *, int, const char *
+ ) {
+ //TODO: print error and abort
+ //we could just exit right now but i want to keep us in
+ //the application so we can get a stack trace in gdb.
+ while (1)
+ ;
+ }
+
+
+}