Mercurial > projects > ldc
comparison gen/logger.h @ 132:1700239cab2e trunk
[svn r136] MAJOR UNSTABLE UPDATE!!!
Initial commit after moving to Tango instead of Phobos.
Lots of bugfixes...
This build is not suitable for most things.
author | lindquist |
---|---|
date | Fri, 11 Jan 2008 17:57:40 +0100 |
parents | 5825d48b27d1 |
children | 18ad5601dff7 |
comparison
equal
deleted
inserted
replaced
131:5825d48b27d1 | 132:1700239cab2e |
---|---|
1 #ifndef _llvmd_gen_logger_h_ | 1 #ifndef _llvmd_gen_logger_h_ |
2 #define _llvmd_gen_logger_h_ | 2 #define _llvmd_gen_logger_h_ |
3 | 3 |
4 #include <iostream> | 4 #include <iostream> |
5 | |
6 struct Loc; | |
5 | 7 |
6 namespace Logger | 8 namespace Logger |
7 { | 9 { |
8 void indent(); | 10 void indent(); |
9 void undent(); | 11 void undent(); |
12 void print(const char* fmt, ...); | 14 void print(const char* fmt, ...); |
13 void enable(); | 15 void enable(); |
14 void disable(); | 16 void disable(); |
15 bool enabled(); | 17 bool enabled(); |
16 | 18 |
17 void attention(const char* fmt, ...); | 19 void attention(const Loc& loc, const char* fmt, ...); |
18 | 20 |
19 struct LoggerScope | 21 struct LoggerScope |
20 { | 22 { |
21 LoggerScope() | 23 LoggerScope() |
22 { | 24 { |