QJson home page
src
qjson_debug.h
1
/* This file is part of qjson
2
*
3
* Copyright (C) 2009 Michael Leupold <lemma@confuego.org>
4
* Copyright (C) 2013 Silvio Moioli <silvio@moioli.net>
5
*
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Lesser General Public
8
* License version 2.1, as published by the Free Software Foundation.
9
*
10
*
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
15
*
16
* You should have received a copy of the GNU Lesser General Public License
17
* along with this library; see the file COPYING.LIB. If not, write to
18
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19
* Boston, MA 02110-1301, USA.
20
*/
21
22
#ifndef QJSON_DEBUG_H
23
#define QJSON_DEBUG_H
24
25
#include <QtCore/QDebug>
26
27
// define qjsonDebug()
28
#ifdef QJSON_VERBOSE_DEBUG_OUTPUT
29
inline
QDebug qjsonDebug() {
return
QDebug(QtDebugMsg); }
30
#else
31
#define qjsonDebug() if(false) QDebug(QtDebugMsg)
32
#endif
33
34
#endif
hosts this site.
Send comments to:
QJson Developers