mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 08:13:35 +00:00
Backed out changeset 1506a6e5ee37 (bug 1349064)
This commit is contained in:
parent
f58d68534e
commit
e3ce8e00e3
@ -32,9 +32,6 @@
|
||||
# define MOZ_THROW_NORETURN MOZ_NORETURN
|
||||
#endif
|
||||
|
||||
// Handle `_GLIBCXX_THROW_OR_ABORT(regex_error(__ecode, __what));` et al.
|
||||
#define _GLIBCXX_THROW_OR_ABORT(_EXC) mozalloc_abort( (_EXC).what() )
|
||||
|
||||
namespace std {
|
||||
|
||||
// NB: user code is not supposed to touch the std:: namespace. We're
|
||||
@ -141,15 +138,6 @@ __throw_system_error(int err)
|
||||
mozalloc_abort(error);
|
||||
}
|
||||
|
||||
MOZ_THROW_NORETURN MOZ_EXPORT MOZ_ALWAYS_INLINE void
|
||||
__throw_regex_error(int __ecode)
|
||||
{
|
||||
char error[128];
|
||||
snprintf(error, sizeof(error)-1,
|
||||
"fatal: STL threw regex_error(%d)", __ecode);
|
||||
mozalloc_abort(error);
|
||||
}
|
||||
|
||||
} // namespace std
|
||||
|
||||
#undef MOZ_THROW_NORETURN
|
||||
|
Loading…
Reference in New Issue
Block a user