aboutsummaryrefslogtreecommitdiff
path: root/svg-flatten/src/wasi_exception_workaround.cpp
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-03-22 12:12:40 +0100
committerjaseg <git@jaseg.de>2023-03-22 23:27:12 +0100
commita6adfe4d1d19096b45a5db144dd135b3fcf94371 (patch)
treedaca490fe3aae57291444eb463f770271b35c705 /svg-flatten/src/wasi_exception_workaround.cpp
parent70a7a0aa95282370a2c1c1aad4db556319770a18 (diff)
downloadgerbolyze-a6adfe4d1d19096b45a5db144dd135b3fcf94371.tar.gz
gerbolyze-a6adfe4d1d19096b45a5db144dd135b3fcf94371.tar.bz2
gerbolyze-a6adfe4d1d19096b45a5db144dd135b3fcf94371.zip
svg-flatten: Add input scaling
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();
+}
+