Changeset dc08c4f for tests


Ignore:
Timestamp:
Apr 23, 2016, 6:27:44 PM (9 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
ad1ffb5
Parents:
8743b33
Message:

tests/utils_tests.h: add VA_ARGS versions of variadic macros

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/utils_tests.h

    r8743b33 rdc08c4f  
    66#include "config.h"
    77
     8#ifdef HAVE_C99_VARARGS_MACROS
     9#define PRINT_ERR(...)   fprintf(stderr, "AUBIO-TESTS ERROR: " __VA_ARGS__)
     10#define PRINT_MSG(...)   fprintf(stdout, __VA_ARGS__)
     11#define PRINT_DBG(...)   fprintf(stderr, __VA_ARGS__)
     12#define PRINT_WRN(...)   fprintf(stderr, "AUBIO-TESTS WARNING: " __VA_ARGS__)
     13#else
    814#define PRINT_ERR(format, args...)   fprintf(stderr, "AUBIO-TESTS ERROR: " format , ##args)
    915#define PRINT_MSG(format, args...)   fprintf(stdout, format , ##args)
    1016#define PRINT_DBG(format, args...)   fprintf(stderr, format , ##args)
    1117#define PRINT_WRN(format, args...)   fprintf(stderr, "AUBIO-TESTS WARNING: " format, ##args)
     18#endif
    1219
    1320#ifdef HAVE_WIN_HACKS
Note: See TracChangeset for help on using the changeset viewer.