diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2018-12-16 14:14:41 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2020-08-09 08:42:11 +0200 |
commit | bc6bd8a2b8b84a79dd77b81d6a25b661c5d1d1ca (patch) | |
tree | 3013cbf73ea3374d9974d251e11da87be7d1276b /src/config.h | |
parent | 7f6457aa9b7110869e89111c42651b1055728679 (diff) | |
download | pianobar-bc6bd8a2b8b84a79dd77b81d6a25b661c5d1d1ca.tar.gz pianobar-bc6bd8a2b8b84a79dd77b81d6a25b661c5d1d1ca.tar.bz2 pianobar-bc6bd8a2b8b84a79dd77b81d6a25b661c5d1d1ca.zip |
Add optional debugging code
Compile *without* -DNDEBUG. The environment variable PIANOBAR_DEBUG
accepts a bitfield which enables (1) network (2) audio (4) UI debug
messages.
Diffstat (limited to 'src/config.h')
-rw-r--r-- | src/config.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h index 48a4cfe..4580f43 100644 --- a/src/config.h +++ b/src/config.h @@ -42,3 +42,10 @@ #define HAVE_AV_REGISTER_ALL #endif +#ifndef NDEBUG +#define HAVE_DEBUGLOG +#define debug(...) fprintf(stderr, __VA_ARGS__) +#else +#define debug(...) +#endif + |