Parent Directory | Revision Log | Patch
revision 1.1 by marcus, Thu Apr 15 11:24:00 2004 UTC | revision 1.2 by neal, Wed Nov 17 16:21:39 2004 UTC | |
---|---|---|
# | Line 38 void __attribute__((__noreturn__)) shutd | Line 38 void __attribute__((__noreturn__)) shutd |
38 | extern int output_debug; | extern int output_debug; |
39 | ||
40 | /* Print a debug message. */ | /* Print a debug message. */ |
41 | #define debug(...) \ | #define debug(fmt, ...) \ |
42 | ({ \ | ({ \ |
43 | extern char program_name[]; \ | |
44 | if (output_debug) \ | if (output_debug) \ |
45 | printf (__VA_ARGS__); \ | printf ("%s:%s: " fmt, program_name, \ |
46 | __FUNCTION__, __VA_ARGS__); \ | |
47 | }) | }) |
48 | ||
49 |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |