Move the sources to trunk
[opencv] / apps / cvenv / EiC / assertp.h
1
2 void abort(void);
3
4 #ifndef NDEBUG
5
6 #define assertandpause(p, args) if(p){fprintf(stderr,\
7                 "ASSERT : %s, At line %d in file %s.\n",\
8                 #p, __LINE__,__FILE__);\
9                 printf args;\
10                 fprintf(stderr,"<Key to continue>");\
11                 getchar();}
12
13
14
15 #define assertp(p, args)        if(p){\
16                 fprintf(stderr,\
17                 "ASSERT : %s, At line %d in file %s.\nCalled From: ",\
18                 #p, __LINE__,__FILE__);\
19                 printf args; abort();}
20
21 #else
22 #define assertandpause(p, args)
23 #define assertp(p, args)
24 #endif