clangformat
Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
parent
3c078f6090
commit
c9e7d1448e
@ -25,21 +25,15 @@
|
|||||||
|
|
||||||
#if defined(__wasm)
|
#if defined(__wasm)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
// FIXME: WASI does not currently support exceptions.
|
// FIXME: WASI does not currently support exceptions.
|
||||||
void* __cxa_allocate_exception(size_t thrown_size) throw() {
|
void *__cxa_allocate_exception(size_t thrown_size) throw() { return malloc(thrown_size); }
|
||||||
return malloc(thrown_size);
|
bool __cxa_uncaught_exception() throw();
|
||||||
}
|
void __cxa_throw(void *thrown_exception, struct std::type_info *tinfo, void (*dest)(void *)) { std::terminate(); }
|
||||||
bool __cxa_uncaught_exception() throw();
|
|
||||||
void __cxa_throw(void* thrown_exception, struct std::type_info * tinfo, void (*dest)(void*)) {
|
|
||||||
std::terminate();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
void throw_exception( std::exception const & e ) {
|
void throw_exception(std::exception const &e) { NEXTPNR_NAMESPACE::log_error("boost::exception(): %s\n", e.what()); }
|
||||||
NEXTPNR_NAMESPACE::log_error("boost::exception(): %s\n", e.what());
|
} // namespace boost
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
NEXTPNR_NAMESPACE_BEGIN
|
NEXTPNR_NAMESPACE_BEGIN
|
||||||
|
Loading…
Reference in New Issue
Block a user