Address feedback

This commit is contained in:
Jarred Sumner 2022-05-31 22:06:17 -07:00
parent 9e41263d39
commit 4d62cbde3a

View file

@ -803,11 +803,11 @@ static bool mi_try_new_handler(bool nothrow) {
if (h==NULL) {
_mi_error_message(ENOMEM, "out of memory in 'new'");
if (!nothrow) {
#ifdef __EXCEPTIONS
throw std::bad_alloc();
#else
abort();
#endif
#if defined(__GNUC__) && !defined(__EXCEPTIONS)
abort();
#else
throw std::bad_alloc();
#endif
}
return false;
}