File: debug.h

package info (click to toggle)
xkeysw 1.0-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 608 kB
  • ctags: 467
  • sloc: ansic: 2,392; sh: 476; lex: 187; yacc: 161; makefile: 93
file content (42 lines) | stat: -rw-r--r-- 1,639 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
    $Id: debug.h,v 1.6 2001/08/22 17:22:51 belyi Exp $

    xkeysw - window bound/multi code keyboard switch
    Copyright (C) 1999  Dima Barsky <dima@debian.org>,
                        Igor Belyi  <ibelyi@yahoo.com>

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

*/

#define DBG_PARSING        000001
#define DBG_SWITCHKEY      000002
#define DBG_WINPROPERTY    000004

#define DBG_NOTIFYEVENT    000010
#define DBG_FOCUSEVENT     000020
#define DBG_KEYEVENT       000040
#define DBG_KEYMAPEVENT    000100

#define DBG_CHANGEMASK     000200

extern int DebugMask;

#define IS_DBG(mask) ((DebugMask&(mask))!=0)
#define DBG_PRINT(mask,format)       {if(IS_DBG(mask)) { fprintf(stderr,format);}}
#define DBG_PRINT1(mask,format,x)     {if(IS_DBG(mask)) { fprintf(stderr,format,x);}}
#define DBG_PRINT2(mask,format,x,y)   {if(IS_DBG(mask)) { fprintf(stderr,format,x,y);}}
#define DBG_PRINT3(mask,format,x,y,z) {if(IS_DBG(mask)) { fprintf(stderr,format,x,y,z);}}