no bug - Import translations from android-l10n r=release a=l10n CLOSED TREE
[gecko.git] / memory / mozalloc / msvc_raise_wrappers.cpp
blob6eb8bdbe314c86d16f2bedf0e67fb5d3d4c970e9
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 * vim: sw=2 ts=4 et :
3 */
4 /* This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 #include <exception>
9 #include "mozalloc_abort.h"
11 static void __cdecl RaiseHandler(const std::exception& e) {
12 mozalloc_abort(e.what());
15 static struct StaticScopeStruct final {
16 StaticScopeStruct() { std::exception::_Set_raise_handler(RaiseHandler); }
17 } StaticScopeInvoke;