Changeset 390 in kBuild
- Timestamp:
- Jan 12, 2006 4:06:20 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gmake/debug.h
r218 r390 31 31 extern int db_level; 32 32 33 extern unsigned int makelevel; 34 extern unsigned int job_slots; 35 extern unsigned int job_slots_used; 36 37 38 #define DB_HDR() do { printf ("[%u:%u/%u]", makelevel, job_slots_used, job_slots); } while (0) 39 33 40 #define ISDB(_l) ((_l)&db_level) 34 41 35 #define DBS(_l,_x) do{ if(ISDB(_l)) {print_spaces (depth); \ 42 #define DBS(_l,_x) do{ if(ISDB(_l)) {DB_HDR(); \ 43 print_spaces (depth); \ 36 44 printf _x; fflush (stdout);} }while(0) 37 45 38 #define DBF(_l,_x) do{ if(ISDB(_l)) {print_spaces (depth); \ 46 #define DBF(_l,_x) do{ if(ISDB(_l)) {DB_HDR(); \ 47 print_spaces (depth); \ 39 48 printf (_x, file->name); \ 40 49 fflush (stdout);} }while(0) 41 50 42 #define DB(_l,_x) do{ if(ISDB(_l)) { printf _x; fflush (stdout);} }while(0)51 #define DB(_l,_x) do{ if(ISDB(_l)) {DB_HDR(); printf _x; fflush (stdout);} }while(0)
Note:
See TracChangeset
for help on using the changeset viewer.