Send Sequoia tracing to Visual Studio debug output sequoia_windows
authorThomas
Tue, 09 Jul 2019 10:53:52 +0200
branchsequoia_windows
changeset 390802674dbf74df
parent 3906 1a00a4b3ff54
child 3909 40a5093a5f04
Send Sequoia tracing to Visual Studio debug output
src/pgp_sequoia.c
     1.1 --- a/src/pgp_sequoia.c	Tue Jul 09 08:19:24 2019 +0200
     1.2 +++ b/src/pgp_sequoia.c	Tue Jul 09 10:53:52 2019 +0200
     1.3 @@ -34,6 +34,13 @@
     1.4          __android_log_print(ANDROID_LOG_DEBUG, "pEpEngine-sequoia",     \
     1.5                              ##__VA_ARGS__);                             \
     1.6      } while (0)
     1.7 +#  elif _WIN32
     1.8 +#    define _T(...) do {                        \
     1.9 +		char str[256];                          \
    1.10 +		snprintf(str, 256, ##__VA_ARGS__);      \
    1.11 +		OutputDebugStringA(str);                \
    1.12 +    } while (0)
    1.13 +
    1.14  #  else
    1.15  #    define _T(...) do {                        \
    1.16          fprintf(stderr, ##__VA_ARGS__);         \