summaryrefslogtreecommitdiffstats
path: root/src/Log.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-12-06 11:03:35 -0500
committerDavid Robillard <d@drobilla.net>2016-12-13 19:15:26 -0500
commit0752556bde5659a933744658cdf63509000a5080 (patch)
tree0ab580ab247f55886515ad23e1bd89a51063acd9 /src/Log.cpp
parent6502a2505fc390e3099331b5ea521efd56812aaa (diff)
downloadingen-0752556bde5659a933744658cdf63509000a5080.tar.gz
ingen-0752556bde5659a933744658cdf63509000a5080.tar.bz2
ingen-0752556bde5659a933744658cdf63509000a5080.zip
Fix some real-time safety issues
Diffstat (limited to 'src/Log.cpp')
-rw-r--r--src/Log.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Log.cpp b/src/Log.cpp
index 9b5a09ce..259d9a3e 100644
--- a/src/Log.cpp
+++ b/src/Log.cpp
@@ -32,6 +32,15 @@ Log::Log(LV2_Log_Log* log, URIs& uris)
{}
void
+Log::rt_error(const char* msg)
+{
+#ifndef NDEBUG
+ va_list args;
+ vtprintf(_uris.log_Error, msg, args);
+#endif
+}
+
+void
Log::error(const std::string& msg)
{
va_list args;