diff options
author | jaseg <git@jaseg.de> | 2023-03-22 12:12:40 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2023-03-22 23:27:12 +0100 |
commit | a6adfe4d1d19096b45a5db144dd135b3fcf94371 (patch) | |
tree | daca490fe3aae57291444eb463f770271b35c705 /svg-flatten/src/wasi_exception_workaround.cpp | |
parent | 70a7a0aa95282370a2c1c1aad4db556319770a18 (diff) | |
download | gerbolyze-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.cpp | 15 |
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(); +} + |