mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
Disable GD_DPRINTF() output in Release builds on all systems
Messages printed with GD_DPRINTF() are clearly debug messages. They flood GoldenDict's output with lines like these: some body finished one finished. erasing.. erase done.. one not finished. ====reading 16384 bytes Messages printed to stderr with GD_FDPRINTF() are more important and less frequent => leave them in Release builds.
This commit is contained in:
parent
98b37feac2
commit
1d6b5efeac
|
@ -6,8 +6,12 @@
|
|||
#ifdef NO_CONSOLE
|
||||
#define GD_DPRINTF(...) do {} while( 0 )
|
||||
#define GD_FDPRINTF(...) do {} while( 0 )
|
||||
#else
|
||||
#ifdef NO_GD_DPRINTF
|
||||
#define GD_DPRINTF(...) do {} while( 0 )
|
||||
#else
|
||||
#define GD_DPRINTF(...) printf(__VA_ARGS__)
|
||||
#endif
|
||||
#define GD_FDPRINTF(...) fprintf(__VA_ARGS__)
|
||||
#endif
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ isEmpty( hasGit ) {
|
|||
}
|
||||
|
||||
CONFIG( release, debug|release ) {
|
||||
DEFINES += NDEBUG
|
||||
DEFINES += NDEBUG NO_GD_DPRINTF
|
||||
}
|
||||
|
||||
# DEPENDPATH += . generators
|
||||
|
|
Loading…
Reference in a new issue