Last change
on this file since 30 was 2, checked in by Rick van der Zwet, 15 years ago |
Initial import of data of old repository ('data') worth keeping (e.g. tracking
means of URL access statistics)
|
File size:
262 bytes
|
Rev | Line | |
---|
[2] | 1 | #include "debug.h"
|
---|
| 2 |
|
---|
| 3 | extern int msglevel; /* the higher, the more messages... */
|
---|
| 4 |
|
---|
| 5 | void pmesg(int level, const char* format, ...) {
|
---|
| 6 | va_list args;
|
---|
| 7 |
|
---|
| 8 | if (level <= msglevel) {
|
---|
| 9 | va_start(args, format);
|
---|
| 10 | vfprintf(stderr, format, args);
|
---|
| 11 | va_end(args);
|
---|
| 12 | }
|
---|
| 13 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.