diff options
Diffstat (limited to 'mgizapp/src/myassert.h')
-rw-r--r-- | mgizapp/src/myassert.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mgizapp/src/myassert.h b/mgizapp/src/myassert.h new file mode 100644 index 0000000..b648fdd --- /dev/null +++ b/mgizapp/src/myassert.h @@ -0,0 +1,20 @@ +#ifndef MY_ASSERT_DEFINED +#define MY_ASSERT_DEFINED +void myerror(int line,const char *file,const char *expression); +void imyerror(int line,const char *file,const char *expression); + +#define iassert(expression) do {if (!(expression)) {imyerror(__LINE__,__FILE__,#expression);}} while (0) + +# +#define massert(expr) do {} while(0) + +#define vassert(expr) do {} while(0) + +#include <cassert> + +#endif + + + + + |