Bumping manifests a=b2g-bump
[gecko.git] / xpcom / base / nsCrashOnException.h
blobcdf3fdf0925245b737be08c1524ecdfebac6ad43
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) CallWindowProcCrashProtected(WNDPROC aWndProc, HWND aHWnd,
18 UINT aMsg, WPARAM aWParam,
19 LPARAM aLParam);
23 #endif