Mercurial > projects > ldc
view gen/logger.h @ 111:a7ae554ce4f4 trunk
[svn r115] Implemented the ClassInfo.defaultConstructor member.
author | lindquist |
---|---|
date | Thu, 22 Nov 2007 21:17:54 +0100 |
parents | 61615fa85940 |
children | 5825d48b27d1 |
line wrap: on
line source
#ifndef _llvmd_gen_logger_h_ #define _llvmd_gen_logger_h_ #include <iostream> namespace Logger { void indent(); void undent(); std::ostream& cout(); void println(const char* fmt, ...); void print(const char* fmt, ...); void enable(); void disable(); void attention(const char* fmt, ...); struct LoggerScope { LoggerScope() { Logger::indent(); } ~LoggerScope() { Logger::undent(); } }; } #define LOG_SCOPE Logger::LoggerScope _logscope; #endif