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

#include <stdio.h>

extern int debugLevel;

#define HACK

#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