2014-12-11 10:50:15 +03:00
|
|
|
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
|
2014-10-10 13:50:55 +04:00
|
|
|
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
|
2013-07-18 21:33:25 +04:00
|
|
|
|
|
|
|
#ifndef DEBUG_HH_INCLUDED__
|
|
|
|
#define DEBUG_HH_INCLUDED__
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
// Macros we use to output debugging information
|
|
|
|
|
|
|
|
#ifndef NDEBUG
|
|
|
|
|
|
|
|
#define dPrintf( ... ) (fprintf( stderr, __VA_ARGS__ ))
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#define dPrintf( ... )
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
extern bool verboseMode;
|
|
|
|
|
|
|
|
#define verbosePrintf( ... ) ({ if ( verboseMode ) \
|
|
|
|
fprintf( stderr, __VA_ARGS__ ); })
|
|
|
|
|
|
|
|
#endif
|