00001 #ifndef _DEBUG_H_ 00002 #define _DEBUG_H_ 00003 00004 #include <stdio.h> 00005 00006 extern int debugLevel; 00007 00008 #define HACK 00009 #define PACKAGELISTLOCAL 00010 #define NEWLAYOUT 00011 00012 #define pvDebug(I, S) \ 00013 if ( debugLevel < 3 ) \ 00014 { \ 00015 if ( I <= debugLevel ) qDebug(S);\ 00016 }else{\ 00017 if ( I <= debugLevel ) \ 00018 qDebug("#%s:%i: %s \t\t(Level: %i)",__FILE__,__LINE__,QString(S).latin1(),I);\ 00019 } 00020 00021 #endif
1.4.2