Mercurial > projects > ldc
view gen/logger.h @ 358:051f5b550d9c trunk
[svn r379] Fix slice assigns of the form T[] = T when T is a typedef.
Fixes run/a/array_initialization_20_B, D, F, H.
author | ChristianK |
---|---|
date | Mon, 14 Jul 2008 12:39:23 +0200 |
parents | 1700239cab2e |
children | 18ad5601dff7 |
line wrap: on
line source
#ifndef _llvmd_gen_logger_h_ #define _llvmd_gen_logger_h_ #include <iostream> struct Loc; namespace Logger { void indent(); void undent(); std::ostream& cout(); void println(const char* fmt, ...); void print(const char* fmt, ...); void enable(); void disable(); bool enabled(); void attention(const Loc& loc, const char* fmt, ...); struct LoggerScope { LoggerScope() { Logger::indent(); } ~LoggerScope() { Logger::undent(); } }; } #define LOG_SCOPE Logger::LoggerScope _logscope; #endif