'g'o should not miss items in corners anymore
[k8-i-v-a-n.git] / src / felib / feerror.h
blob1d52bb6fd7b2f24f3a5a0fb1c26aadc56771feb4
1 /*
3 * Iter Vehemens ad Necem (IVAN)
4 * Copyright (C) Timo Kiviluoto
5 * Released under the GNU General
6 * Public License
8 * See LICENSING which should be included
9 * along with this file for more details
12 #ifndef __FELIB_ERROR_H__
13 #define __FELIB_ERROR_H__
15 #include "felibdef.h"
17 #define ABORT globalerrorhandler::Abort
20 class globalerrorhandler {
21 public:
22 static void Install ();
23 static void DeInstall ();
24 static void NO_RETURN LIKE_PRINTF(1, 2) Abort (cchar *, ...);
25 static cchar *GetBugMsg () { return BugMsg; }
27 static void activateGDBMode ();
28 static bool isGDB ();
30 static void activateGDBReadMode ();
31 static bool isGDBRead ();
33 static void segfault ();
35 private:
36 static void NewHandler ();
37 static void (*OldNewHandler) ();
39 private:
40 static cchar *BugMsg;
41 static bool errorGDB;
42 static bool errorGDBRead;
46 #endif