summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/debug.h
blob: c53e36ce5a8e1441a1da9a540ba341994042e28e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef _DEBUG_H_
#define _DEBUG_H_

#include <stdio.h>

extern int debugLevel;

#define HACK


#define pvDebug(I, S) \
if ( debugLevel < 3 ) \
{ \
	if ( I <= debugLevel ) qDebug(S);\
}else{\
	if ( I <= debugLevel ) \
		printf("# %s \t\t(Level: %i)\n",QString(S).latin1(),I);\
}

#endif