digiKam
tparserdebug.h
Go to the documentation of this file.
1 /*============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Description : Hugin parser debug header
7  *
8  * Copyright (C) 2007 by Daniel M German <dmgerman at uvic doooot ca>
9  *
10  * This program is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU General Public License as
12  * published by the Free Software Foundation; either version 2 of
13  * the License, or (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program. If not, see <https://www.gnu.org/licenses/>.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_T_PARSER_DEBUG_H
26 #define DIGIKAM_T_PARSER_DEBUG_H
27 
28 /* #define YYDEBUG 1 */
29 
30 #ifdef YYDEBUG
31 # define DEBUG_1(a) fprintf(stderr, #a "\n");
32 # define DEBUG_2(a,b) fprintf(stderr, #a "\n", b);
33 # define DEBUG_3(a,b,c) fprintf(stderr, #a "\n", b, c);
34 # define DEBUG_4(a,b,c,d) fprintf(stderr, #a "\n", b, c, d);
35 #else
36 # define DEBUG_1(a)
37 # define DEBUG_2(a,b)
38 # define DEBUG_3(a,b,c)
39 # define DEBUG_4(a,b,c,d)
40 #endif
41 
42 #endif /* DIGIKAM_T_PARSER_DEBUG_H */