1 /******************************************************************************
3 * $Id: debug.h,v 1.6 2001/03/19 19:27:40 root Exp $
6 * Copyright (C) 1997-2012 by Dimitri van Heesch.
8 * Permission to use, copy, modify, and distribute this software and its
9 * documentation under the terms of the GNU General Public License is hereby
10 * granted. No representations are made about the suitability of this software
11 * for any purpose. It is provided "as is" without express or implied warranty.
12 * See the GNU General Public License for more details.
14 * Documents produced by Doxygen are derivative works derived from the
15 * input used in their production; they are not affected by this license.
22 /** Class containing a print function for diagnostics. */
26 enum DebugMask { Quiet = 0x00000000,
27 FindMembers = 0x00000001,
28 Functions = 0x00000002,
29 Variables = 0x00000004,
30 Preprocessor = 0x00000008,
32 CommentCnv = 0x00000020,
33 CommentScan = 0x00000040,
34 Validate = 0x00000080,
35 PrintTree = 0x00000100,
38 Markdown = 0x00000800,
39 FilterOutput = 0x00001000
41 static void print(DebugMask mask,int prio,const char *fmt,...);
42 static void setFlag(const char *label);
43 static void clearFlag(const char *label);
44 static bool isFlagSet(DebugMask mask);
45 static void setPriority(int p);
48 static DebugMask curMask;