00001 #ifndef TOOLS_H
00002 #define TOOLS_H
00003
00004 #define DELETE(P) delete(P); \
00005 P=NULL;
00006
00007 #define DELETEF(P) delete [] P; \
00008 P=NULL;
00009
00010
00011 #ifdef _DEBUG
00012
00013 #define TRACE1(S) std::cout << S<<std::endl;
00014 #define TRACE2(S1, S2) std::cout << S1<<" "<<S2<<std::endl;
00015 #define WATCH(V) std::cout << #V << ":"<<V<<std::endl;
00016 #define EXEC(S) S;
00017
00018 #else
00019
00020 #define TRACE1(S)
00021 #define TRACE2(S1, S2)
00022 #define WATCH(V)
00023 #define EXEC(S)
00024
00025 #endif
00026
00027 #endif