2
0

blitz_debug.c 610 B

12345678910111213141516171819202122232425
  1. #include "blitz.h"
  2. void bbCAssertEx(){
  3. bbExThrowCString( "C Assert failed" );
  4. }
  5. static void debugNop(){
  6. }
  7. static void debugUnhandledEx( BBObject *ex ){
  8. bbWriteStderr( ex->clas->ToString( ex ) );
  9. exit(-1);
  10. }
  11. void (*bbOnDebugStop)()=debugNop;
  12. void (*bbOnDebugLog)( BBString *str )=debugNop;
  13. void (*bbOnDebugEnterStm)( BBDebugStm *stm )=debugNop;
  14. void (*bbOnDebugEnterScope)( BBDebugScope *scope,void *inst )=debugNop;
  15. void (*bbOnDebugLeaveScope)()=debugNop;
  16. void (*bbOnDebugPushExState)()=debugNop;
  17. void (*bbOnDebugPopExState)()=debugNop;
  18. void (*bbOnDebugUnhandledEx)( BBObject *ex )=debugUnhandledEx;