2014-01-31 08:23:00 +13:00
|
|
|
|
|
|
|
|
#ifndef BBSYS_H
|
|
|
|
|
#define BBSYS_H
|
|
|
|
|
|
|
|
|
|
#include "basic.h"
|
|
|
|
|
#include "../gxruntime/gxruntime.h"
|
|
|
|
|
|
|
|
|
|
extern bool debug;
|
|
|
|
|
extern gxRuntime *gx_runtime;
|
|
|
|
|
|
|
|
|
|
struct bbEx{
|
|
|
|
|
const char *err;
|
|
|
|
|
bbEx( const char *e ):err(e){
|
|
|
|
|
if( e ) gx_runtime->debugError( e );
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2016-05-07 22:49:54 +02:00
|
|
|
#define ThrowRuntimeException( _X_ ) throw bbEx( _X_ );
|
2014-01-31 08:23:00 +13:00
|
|
|
|
|
|
|
|
#endif
|