2 /* Debug macros for development.
4 Free Software Foundation, Inc.
6 This file is part of GDB.
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
27 #ifdef ANSI_PROTOTYPES
37 #define DBG(x) OutputDebugString x
39 #define DBG(x) printf x
42 #define DBG(x) printf_unfiltered x
45 #define DBG(x) MessageBox x
47 #define DBG(x) printf x
49 #else /* default: TO_FILE "gdb.log" */
50 #define DBG(x) printf_dbg x
53 #define ASSERT(x) assert(x)
66 #define printf_unfiltered printf_dbg
67 #define fputs_unfiltered fputs_dbg
68 extern void fputs_dbg
PARAMS ((const char *fmt
, FILE * fakestream
));
71 extern void puts_dbg
PARAMS ((const char *fmt
));
72 #ifdef ANSI_PROTOTYPES
73 extern void printf_dbg
PARAMS ((const char *fmt
,...));
75 extern void printf_dbg
PARAMS ((va_alist va_dcl
));
83 #endif /* _DEBUGIFY_H_ */
This page took 0.030221 seconds and 4 git commands to generate.