comparison gen/logger.h @ 94:61615fa85940 trunk

[svn r98] Added support for std.c.stdlib.alloca via pragma(LLVM_internal, "alloca"). Added support for array .sort and .reverse properties. Fixed some bugs with pointer arithmetic. Disabled some DMD AST optimizations that was messing things up, destroying valuable information. Added a KDevelop project file, this is what I use for coding LLVMDC now :) Other minor stuff.
author lindquist
date Mon, 12 Nov 2007 06:32:46 +0100
parents 27b2f40bdb58
children 5825d48b27d1
comparison
equal deleted inserted replaced
93:08508eebbb3e 94:61615fa85940
10 std::ostream& cout(); 10 std::ostream& cout();
11 void println(const char* fmt, ...); 11 void println(const char* fmt, ...);
12 void print(const char* fmt, ...); 12 void print(const char* fmt, ...);
13 void enable(); 13 void enable();
14 void disable(); 14 void disable();
15 15
16 void attention(const char* fmt, ...);
16 17
17 struct LoggerScope 18 struct LoggerScope
18 { 19 {
19 LoggerScope() 20 LoggerScope()
20 { 21 {
21 Logger::indent(); 22 Logger::indent();
22
23 } 23 }
24 ~LoggerScope() 24 ~LoggerScope()
25 { 25 {
26 Logger::undent(); 26 Logger::undent();
27 } 27 }