Changeset 36ab428 for src


Ignore:
Timestamp:
Jul 12, 2019, 12:27:44 AM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/crepe_org
Parents:
befee7a (diff), 63fc1df (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into feature/crepe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/aubio_priv.h

    rbefee7a r36ab428  
    241241#define AUBIO_INF(...)               aubio_log(AUBIO_LOG_INF, "AUBIO INFO: " __VA_ARGS__)
    242242#define AUBIO_MSG(...)               aubio_log(AUBIO_LOG_MSG, __VA_ARGS__)
    243 #define AUBIO_DBG(...)               aubio_log(AUBIO_LOG_DBG, __VA_ARGS__)
     243#define _AUBIO_DBG(...)              aubio_log(AUBIO_LOG_DBG, __VA_ARGS__)
    244244#define AUBIO_WRN(...)               aubio_log(AUBIO_LOG_WRN, "AUBIO WARNING: " __VA_ARGS__)
    245245#else
     
    247247#define AUBIO_INF(format, args...)   aubio_log(AUBIO_LOG_INF, "AUBIO INFO: " format , ##args)
    248248#define AUBIO_MSG(format, args...)   aubio_log(AUBIO_LOG_MSG, format , ##args)
    249 #define AUBIO_DBG(format, args...)   aubio_log(AUBIO_LOG_DBG, format , ##args)
     249#define _AUBIO_DBG(format, args...)  aubio_log(AUBIO_LOG_DBG, format , ##args)
    250250#define AUBIO_WRN(format, args...)   aubio_log(AUBIO_LOG_WRN, "AUBIO WARNING: " format, ##args)
     251#endif
     252
     253#ifdef DEBUG
     254#define AUBIO_DBG _AUBIO_DBG
     255#else
     256// disable debug output
     257#ifdef HAVE_C99_VARARGS_MACROS
     258#define AUBIO_DBG(...)               {}
     259#else
     260#define AUBIO_DBG(format, args...)   {}
     261#endif
    251262#endif
    252263
Note: See TracChangeset for help on using the changeset viewer.