repo.or.cz
/
AROS.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
alsa.audio: add debug logs
[AROS.git]
/
workbench
/
tools
/
HDToolBox
/
debug.h
blob
11d5c0ad6ea643d4499f9bf712eac0c11e17fffe
1
#ifndef PDEBUG_H
2
#define PDEBUG_H
3
4
// AROS: Comment the following line out to enable debug to the shell
5
#define AROS_DEFAULT_DEBUG
6
7
#ifndef DEBUG
8
#define DEBUG 0
9
#endif
10
11
#ifndef __AROS__
12
#ifdef __AMIGAOS__
13
#if DEBUG > 0
14
#define D(x) x
15
#define bug kprintf
16
#else
17
#define D(x)
18
#endif
19
void
kprintf
(
char
*, ...);
20
#endif
21
#else
/* __AROS__ */
22
#ifndef AROS_DEFAULT_DEBUG
23
#define D(x) x
24
#define bug printf
25
#include <stdio.h>
26
#else
27
#include <aros/debug.h>
28
#endif
29
#endif
30
31
#endif
/* PDEBUG_H */