VirtualBox

source: kBuild/trunk/src/gmake/debug.h@ 503

最後變更 在這個檔案從503是 503,由 bird 提交於 19 年 前

Untested merge with GNU Make v3.81 (vendor/gnumake/2005-05-16 -> vendor/gnumake/current).

  • 屬性 svn:eol-style 設為 native
檔案大小: 1.8 KB
 
1/* Debugging macros and interface.
2Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software
3Foundation, 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 2, or (at your option) any later version.
9
10GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
11WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License along with
15GNU Make; see the file COPYING. If not, write to the Free Software
16Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */
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#define DB_KMK (0x800)
25
26#define DB_ALL (0xfff)
27
28extern int db_level;
29
30extern unsigned int makelevel;
31extern unsigned int job_slots;
32extern unsigned int job_slots_used;
33
34
35#define DB_HDR() do { printf ("[%u:%u/%u]", makelevel, job_slots_used, job_slots); } while (0)
36
37#define ISDB(_l) ((_l)&db_level)
38
39#define DBS(_l,_x) do{ if(ISDB(_l)) {DB_HDR(); \
40 print_spaces (depth); \
41 printf _x; fflush (stdout);} }while(0)
42
43#define DBF(_l,_x) do{ if(ISDB(_l)) {DB_HDR(); \
44 print_spaces (depth); \
45 printf (_x, file->name); \
46 fflush (stdout);} }while(0)
47
48#define DB(_l,_x) do{ if(ISDB(_l)) {DB_HDR(); printf _x; fflush (stdout);} }while(0)
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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