-rw-r--r-- | noncore/unsupported/oipkg/debug.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/noncore/unsupported/oipkg/debug.h b/noncore/unsupported/oipkg/debug.h new file mode 100644 index 0000000..c519b19 --- a/dev/null +++ b/noncore/unsupported/oipkg/debug.h @@ -0,0 +1,21 @@ +#ifndef _DEBUG_H_ +#define _DEBUG_H_ + +#include <stdio.h> + +extern int debugLevel; + +#define HACK +#define PACKAGELISTLOCAL +#define NEWLAYOUT + +#define pvDebug(I, S) \ +if ( debugLevel < 3 ) \ +{ \ + if ( I <= debugLevel ) qDebug(S);\ +}else{\ + if ( I <= debugLevel ) \ + qDebug("#%s:%i: %s \t\t(Level: %i)",__FILE__,__LINE__,QString(S).latin1(),I);\ +} + +#endif |