BlitzMax Extended  0.8.11
Pushing Blitz to the Max.
blitz_blitzexception.h
Go to the documentation of this file.
00001 
00012 #ifndef BLITZ_EX_BLITZEXCEPTION_H
00013 #define BLITZ_EX_BLITZEXCEPTION_H
00014 
00015 #include "blitz_exception.h"
00016 
00017 BB_BEGIN_DECLS
00018 
00025 struct BBBlitzException
00026 {
00031     BBClass         *clas;
00032     int             refs;
00033     
00034     BBException     *cause;
00035 };
00036 
00037 #define BBBLITZEXCEPTION_ALLOC(clas) \
00038     ({                                                                          \
00039         (BBBlitzException *)                                                    \
00040         bbGCAllocObject(                                                        \
00041             sizeof (BBBlitzException),                                          \
00042             (clas),                                                             \
00043             BBGC_FINALIZE                                                       \
00044         );                                                                      \
00045     })
00046 
00047 extern BBClass bbBlitzExceptionClass;
00048 
00049 BB_END_DECLS
00050 
00051 #endif  // BLITZ_EX_BLITZEXCEPTION_H