aboutsummaryrefslogtreecommitdiff
path: root/src/exceptionbase.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-07-13 02:01:38 +0000
committerMike Buland <eichlan@xagasoft.com>2007-07-13 02:01:38 +0000
commit56d26456174cf9abd58fec38bfd700ed08ec73d8 (patch)
treed0cb23233f141142338b1b3ebc026f5f6ae8851a /src/exceptionbase.h
parentd093a607848aa4cce99729d9b301f4888dfa66db (diff)
downloadlibbu++-56d26456174cf9abd58fec38bfd700ed08ec73d8.tar.gz
libbu++-56d26456174cf9abd58fec38bfd700ed08ec73d8.tar.bz2
libbu++-56d26456174cf9abd58fec38bfd700ed08ec73d8.tar.xz
libbu++-56d26456174cf9abd58fec38bfd700ed08ec73d8.zip
Exceptions are better, but not all switched over yet.
Diffstat (limited to '')
-rw-r--r--src/exceptionbase.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/exceptionbase.h b/src/exceptionbase.h
index 0a251e4..4cdbf36 100644
--- a/src/exceptionbase.h
+++ b/src/exceptionbase.h
@@ -89,6 +89,17 @@ class name : public Bu::ExceptionBase \
89 name( int nCode=0 ) throw (); \ 89 name( int nCode=0 ) throw (); \
90}; 90};
91 91
92#define subExceptionDeclBegin( name ) \
93class name : public Bu::ExceptionBase \
94{ \
95 public: \
96 name( const char *sFormat, ... ) throw (); \
97 name( int nCode, const char *sFormat, ... ) throw(); \
98 name( int nCode=0 ) throw ();
99
100#define subExceptionDeclEnd() \
101};
102
92#define subExceptionDef( name ) \ 103#define subExceptionDef( name ) \
93name::name( const char *lpFormat, ... ) throw() : \ 104name::name( const char *lpFormat, ... ) throw() : \
94 ExceptionBase( 0 ) \ 105 ExceptionBase( 0 ) \