diff options
Diffstat (limited to 'src/lib/libsw602_utils.cpp')
-rw-r--r-- | src/lib/libsw602_utils.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/lib/libsw602_utils.cpp b/src/lib/libsw602_utils.cpp index 78f264c..1ae5dbf 100644 --- a/src/lib/libsw602_utils.cpp +++ b/src/lib/libsw602_utils.cpp @@ -7,10 +7,13 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#include <cstdio> - #include "libsw602_utils.h" +#include <cstdarg> +#ifdef DEBUG +#include <cstdio> +#endif + namespace libsw602 { @@ -125,6 +128,16 @@ void skip(librevenge::RVNGInputStream &input, unsigned long numBytes) } } +#ifdef DEBUG +void debugPrint(const char *const format, ...) +{ + va_list args; + va_start(args, format); + std::vfprintf(stderr, format, args); + va_end(args); +} +#endif + } /* vim:set shiftwidth=2 softtabstop=2 expandtab: */ |