Code::Blocks  SVN r11506
crashhandler.h
Go to the documentation of this file.
1 /*
2  * This file is part of the Code::Blocks IDE and licensed under the GNU General Public License, version 3
3  * http://www.gnu.org/licenses/gpl-3.0.html
4  */
5 
6 #ifndef CRASH_HANDLER
7 #define CRASH_HANDLER
8 
9 #ifdef __WXMSW__
10 
11 #include <winnt.h>
12 
14 {
15 // typedef PVOID (*AddHandler_t)(ULONG, PVECTORED_EXCEPTION_HANDLER);
16 // typedef ULONG (*RemoveHandler_t)(PVOID);
17  typedef void * (*AddHandler_t)(unsigned long, PVECTORED_EXCEPTION_HANDLER);
18  typedef unsigned long (*RemoveHandler_t)(void *);
19 
20  void * handler;
21 public:
22  CrashHandler(bool bDisabled);
23  ~CrashHandler();
24 };
25 
26 #else
27 
28 class CrashHandler
29 {
30 public:
31  CrashHandler(cb_unused bool bDisabled){};
32  ~CrashHandler(){};
33 };
34 
35 #endif
36 
37 #endif
CrashHandler(bool bDisabled)
unsigned long(* RemoveHandler_t)(void *)
Definition: crashhandler.h:18
void * handler
Definition: crashhandler.h:20