ECF 1.5
check.h
1// Domagoj Jakobovic
2// makroi za bezuvjetnu provjeru
3// 26.09.2002
4
5#ifndef CHECK
6
7#define CHECKMSG(condition, text) \
8if(!(condition)) {fprintf(stderr,"file: " __FILE__ "\nline: %d\nmsg: " text "\n",__LINE__); exit(1);}
9#define CHECK(condition) \
10if(!(condition)) {fprintf(stderr,"Assertion failed!\nfile: " __FILE__ "\nline: %d\n" ,__LINE__); exit(1);}
11
12#endif