add A8_ABORT
This commit is contained in:
parent
5e0a939a89
commit
adcd7a71ae
2
a8/a8.h
2
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user