aboutsummaryrefslogtreecommitdiff
path: root/svg-flatten/src/wasi_exception_workaround.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'svg-flatten/src/wasi_exception_workaround.cpp')
-rw-r--r--svg-flatten/src/wasi_exception_workaround.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/svg-flatten/src/wasi_exception_workaround.cpp b/svg-flatten/src/wasi_exception_workaround.cpp
new file mode 100644
index 0000000..9d20744
--- /dev/null
+++ b/svg-flatten/src/wasi_exception_workaround.cpp
@@ -0,0 +1,15 @@
+
+#include <typeinfo>
+#include <cstdlib>
+using namespace std;
+
+void __cxa_allocate_exception(size_t size) {
+ (void) size;
+ abort();
+}
+
+void __cxa_throw(void* thrown_exception, struct std::type_info * tinfo, void (*dest)(void*)) {
+ (void) thrown_exception, (void) tinfo, (void) dest;
+ abort();
+}
+