bbsys.h 294 B

1234567891011121314151617181920
  1. #ifndef BBSYS_H
  2. #define BBSYS_H
  3. #include "basic.h"
  4. #include "../gxruntime/gxruntime.h"
  5. extern bool debug;
  6. extern gxRuntime *gx_runtime;
  7. struct bbEx{
  8. const char *err;
  9. bbEx( const char *e ):err(e){
  10. if( e ) gx_runtime->debugError( e );
  11. }
  12. };
  13. #define RTEX( _X_ ) throw bbEx( _X_ );
  14. #endif