VirtualBox

source: kBuild/vendor/gnumake/3.82-cvs/debug.h@ 2580

Last change on this file since 2580 was 2580, checked in by bird, 12 years ago

Importing the make-3-82 CVS tag with --auto-props but no keywords.

  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
1/* Debugging macros and interface.
2Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
32009, 2010 Free Software Foundation, Inc.
4This file is part of GNU Make.
5
6GNU Make is free software; you can redistribute it and/or modify it under the
7terms of the GNU General Public License as published by the Free Software
8Foundation; either version 3 of the License, or (at your option) any later
9version.
10
11GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
12WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
13A PARTICULAR PURPOSE. See the GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License along with
16this program. If not, see <http://www.gnu.org/licenses/>. */
17
18#define DB_NONE (0x000)
19#define DB_BASIC (0x001)
20#define DB_VERBOSE (0x002)
21#define DB_JOBS (0x004)
22#define DB_IMPLICIT (0x008)
23#define DB_MAKEFILES (0x100)
24
25#define DB_ALL (0xfff)
26
27extern int db_level;
28
29#define ISDB(_l) ((_l)&db_level)
30
31#define DBS(_l,_x) do{ if(ISDB(_l)) {print_spaces (depth); \
32 printf _x; fflush (stdout);} }while(0)
33
34#define DBF(_l,_x) do{ if(ISDB(_l)) {print_spaces (depth); \
35 printf (_x, file->name); \
36 fflush (stdout);} }while(0)
37
38#define DB(_l,_x) do{ if(ISDB(_l)) {printf _x; fflush (stdout);} }while(0)
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette