`RandomChance` type, and two new item fields: `MagicEffectChance`, `MagicEffectDuration`
[k8-i-v-a-n.git] / src / felib / feerror.h
blobceca85c7f3fb88574f0b551992a29fbabce7811b
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 private:
28 static void NewHandler ();
29 static void (*OldNewHandler) ();
31 private:
32 static cchar *BugMsg;
36 #endif