aboutsummaryrefslogtreecommitdiff
path: root/svg-flatten/src/wasi_exception_workaround.cpp
blob: 9d20744be193204d2e6738555a1f6ce0c2881309 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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();
}