author | tille <tille> | 2002-04-23 11:16:45 (UTC) |
---|---|---|
committer | tille <tille> | 2002-04-23 11:16:45 (UTC) |
commit | a3205d9bf5570af8441ed81cd6d9eeadf22319c9 (patch) (unidiff) | |
tree | e2403e5dcc46906570cb070b852ee83d9a8af0b8 /noncore/unsupported/oipkg/debug.h | |
parent | 7e8db7f310d7a43326337a7960e59d9e313b8534 (diff) | |
download | opie-a3205d9bf5570af8441ed81cd6d9eeadf22319c9.zip opie-a3205d9bf5570af8441ed81cd6d9eeadf22319c9.tar.gz opie-a3205d9bf5570af8441ed81cd6d9eeadf22319c9.tar.bz2 |
... mostly rewritten.
Diffstat (limited to 'noncore/unsupported/oipkg/debug.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/oipkg/debug.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/noncore/unsupported/oipkg/debug.h b/noncore/unsupported/oipkg/debug.h new file mode 100644 index 0000000..c53e36c --- a/dev/null +++ b/noncore/unsupported/oipkg/debug.h | |||
@@ -0,0 +1,20 @@ | |||
1 | #ifndef _DEBUG_H_ | ||
2 | #define _DEBUG_H_ | ||
3 | |||
4 | #include <stdio.h> | ||
5 | |||
6 | extern int debugLevel; | ||
7 | |||
8 | #define HACK | ||
9 | |||
10 | |||
11 | #define pvDebug(I, S) \ | ||
12 | if ( debugLevel < 3 ) \ | ||
13 | { \ | ||
14 | if ( I <= debugLevel ) qDebug(S);\ | ||
15 | }else{\ | ||
16 | if ( I <= debugLevel ) \ | ||
17 | printf("# %s \t\t(Level: %i)\n",QString(S).latin1(),I);\ | ||
18 | } | ||
19 | |||
20 | #endif \ No newline at end of file | ||