diff --git a/a8/a8.h b/a8/a8.h index 2c28608..77cbcda 100644 --- a/a8/a8.h +++ b/a8/a8.h @@ -35,4 +35,6 @@ namespace std #define A8_SAFE_DELETE(p) { if(p){delete(p); (p)=nullptr;} } #define A8_DEFINE_RANGE_BIT(type, begin, end) ((((type)1) << (end + 1)) - 1) & (~((((type)1) << (begin + 0)) - 1)) +#define A8_ABORT() do{printf("abort file:%s line:%d func:%s\n", __FILE__, __LINE__, __func__);fflush(stdout);fflush(stderr);abort();}while(0); + #endif