From 7199e74aa22e592a3b77bdd81f735edca5470596 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Sat, 20 Jan 2024 17:59:40 -0500 Subject: update --- libraries/euler/cassert.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 libraries/euler/cassert.cpp (limited to 'libraries/euler/cassert.cpp') 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 + +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) + ; + } + + +} -- cgit v1.2.3