Bug 1932613 - temporarily disable browser_ml_end_to_end.js for permanent failures...
[gecko.git] / xpcom / base / nsCrashOnException.h
blob1291cd49614350bb1ac64c7f75cf8c6166f6f3dc
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef nsCrashOnException_h
8 #define nsCrashOnException_h
10 #include <nscore.h>
11 #include <windows.h>
13 namespace mozilla {
15 // Call a given window procedure, and catch any Win32 exceptions raised from it,
16 // and report them as crashes.
17 XPCOM_API(LRESULT)
18 CallWindowProcCrashProtected(WNDPROC aWndProc, HWND aHWnd, UINT aMsg,
19 WPARAM aWParam, LPARAM aLParam);
21 } // namespace mozilla
23 #endif