Mercurial > projects > ldc
diff gen/logger.cpp @ 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 | b604c56945b0 |
line wrap: on
line diff
--- a/gen/logger.cpp Fri Jan 04 01:38:42 2008 +0100 +++ b/gen/logger.cpp Fri Jan 11 17:57:40 2008 +0100 @@ -6,6 +6,8 @@ #include <fstream> #include <string> +#include "mars.h" + #include "gen/logger.h" namespace Logger @@ -67,9 +69,9 @@ { return _enabled; } - void attention(const char* fmt,...) + void attention(const Loc& loc, const char* fmt,...) { - printf("***ATTENTION*** "); + printf("***ATTENTION***: %s: ", loc.toChars()); va_list va; va_start(va,fmt); vprintf(fmt,va);