summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-10 06:24:07 +0000
committerDavid Robillard <d@drobilla.net>2012-05-10 06:24:07 +0000
commitdd599c5663c6e5db8bdab0597935550c026d5f7b (patch)
treebf0298ba27f70f6562ef543d408c7d8bee2544ff /src
parent4eb9aa529c2b3c083c64886234ead8f06ff5f77e (diff)
downloadraul-dd599c5663c6e5db8bdab0597935550c026d5f7b.tar.gz
raul-dd599c5663c6e5db8bdab0597935550c026d5f7b.tar.bz2
raul-dd599c5663c6e5db8bdab0597935550c026d5f7b.zip
Work towards translatable strings and a cleaner log interface.
git-svn-id: http://svn.drobilla.net/lad/trunk/raul@4338 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/Thread.cpp2
-rw-r--r--src/log.cpp8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/Thread.cpp b/src/Thread.cpp
index 78edacc..f1b8f99 100644
--- a/src/Thread.cpp
+++ b/src/Thread.cpp
@@ -21,7 +21,7 @@
#include "raul/log.hpp"
#include "raul/Thread.hpp"
-#define LOG(s) s << "[" << _name << "] "
+#define LOG(s) (s("[")(_name)("] "))
using std::endl;
diff --git a/src/log.cpp b/src/log.cpp
index 1c2afaf..ee020ff 100644
--- a/src/log.cpp
+++ b/src/log.cpp
@@ -46,10 +46,10 @@ NullBuffer debug_buffer;
#endif // RAUL_LOG_COLOUR
-std::ostream info(&info_buffer);
-std::ostream warn(&warn_buffer);
-std::ostream error(&error_buffer);
-std::ostream debug(&debug_buffer);
+Raul::Log info(&info_buffer);
+Raul::Log warn(&warn_buffer);
+Raul::Log error(&error_buffer);
+Raul::Log debug(&debug_buffer);
std::string
Raul::LogBuffer::colour(Colour c)