Commit 77a07d941e3422fe8b1e2f23293362c4f6606cc0

Authored by Perry Werneck
1 parent d894103c
Exists in master and in 1 other branch develop

Fixing HLLAPI debug mode logs.

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/hllapi/client.h
@@ -39,7 +39,7 @@ @@ -39,7 +39,7 @@
39 39
40 #if defined(DEBUG) && defined(_WIN32) 40 #if defined(DEBUG) && defined(_WIN32)
41 #undef trace 41 #undef trace
42 - #define trace( fmt, ... ) { FILE *out = fopen("c:\\Users\\Perry\\hllapi.log","a"); if(out) { fprintf(out, "%s(%d) " fmt "\n", __FILE__, __LINE__, __VA_ARGS__ ); fclose(out); } } 42 + #define trace( fmt, ... ) fprintf(stderr, "%s(%d) " fmt "\n", __FILE__, __LINE__, __VA_ARGS__ ); fflush(stderr);
43 #endif // DEBUG 43 #endif // DEBUG
44 44
45 #ifdef __cplusplus 45 #ifdef __cplusplus