Also no optional arguments. sync
authorNeal H. Walfield <neal@pep.foundation>
Thu, 16 May 2019 09:15:11 +0200
branchsync
changeset 37022205ed308447
parent 3700 55e7a6770c47
child 3703 b8ff8becff09
Also no optional arguments.

- To kill the preceding comma when __VA_ARGS__ is empty, we need to
preface __VA_ARGS__ with ##.

- Fix indentation.
src/pgp_sequoia.c
     1.1 --- a/src/pgp_sequoia.c	Wed May 15 23:35:38 2019 +0200
     1.2 +++ b/src/pgp_sequoia.c	Thu May 16 09:15:11 2019 +0200
     1.3 @@ -28,16 +28,17 @@
     1.4  #if TRACING
     1.5  #include "status_to_string.h"
     1.6  
     1.7 -#ifdef ANDROID
     1.8 -#  include <android/log.h>
     1.9 -#  define _T(...) do {                          \
    1.10 -        __android_log_print(ANDROID_LOG_DEBUG, "pEpEngine-sequoia", __VA_ARGS__);         \
    1.11 +#  ifdef ANDROID
    1.12 +#    include <android/log.h>
    1.13 +#    define _T(...) do {                                                \
    1.14 +        __android_log_print(ANDROID_LOG_DEBUG, "pEpEngine-sequoia",     \
    1.15 +                            ##__VA_ARGS__);                             \
    1.16      } while (0)
    1.17 -#else
    1.18 -#  define _T(...) do {                          \
    1.19 +#  else
    1.20 +#    define _T(...) do {                        \
    1.21          fprintf(stderr, ##__VA_ARGS__);         \
    1.22      } while (0)
    1.23 -#endif
    1.24 +#  endif
    1.25  #else
    1.26  #  define _T(...) do { } while (0)
    1.27  #endif