Debian Codegraph @

src/lib/libepubgen_utils.cpp

raw
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3 * This file is part of the libepubgen project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10 #include "libepubgen_utils.h"
11
12 #ifdef DEBUG
13 #include <cstdio>
14 #include <cstdarg>
15 #endif
16
17 namespace libepubgen
18 {
19
20 #ifdef DEBUG
21 void debugPrint(const char *format, ...)
22 {
23 va_list args;
24 va_start(args, format);
25 std::vfprintf(stderr, format, args);
26 va_end(args);
27 }
28 #endif
29
30 }
31
32 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */