add A8_ABORT

This commit is contained in:
aozhiwei 2021-11-04 17:59:49 +08:00
parent 5e0a939a89
commit adcd7a71ae

View File

@ -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