Mercurial > projects > ldc
comparison gen/logger.h @ 1124:e7f0c2b48047
Fix a bug where ::warning() was called with a va_list argument instead of an
actual vararg list.
Also cleaned up the format for warnings. (Previously some would start with
"warning - warning - Warning:" which was a bit redundant)
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Wed, 18 Mar 2009 15:03:17 +0100 |
parents | 18ad5601dff7 |
children | 79758fd2f48a |
comparison
equal
deleted
inserted
replaced
1123:165a920f4e88 | 1124:e7f0c2b48047 |
---|---|
14 void print(const char* fmt, ...); | 14 void print(const char* fmt, ...); |
15 void enable(); | 15 void enable(); |
16 void disable(); | 16 void disable(); |
17 bool enabled(); | 17 bool enabled(); |
18 | 18 |
19 void attention(const Loc& loc, const char* fmt, ...); | 19 void attention(Loc loc, const char* fmt, ...); |
20 | 20 |
21 struct LoggerScope | 21 struct LoggerScope |
22 { | 22 { |
23 LoggerScope() | 23 LoggerScope() |
24 { | 24 { |