From 0752556bde5659a933744658cdf63509000a5080 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 6 Dec 2016 11:03:35 -0500 Subject: Fix some real-time safety issues --- src/Log.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/Log.cpp') diff --git a/src/Log.cpp b/src/Log.cpp index 9b5a09ce..259d9a3e 100644 --- a/src/Log.cpp +++ b/src/Log.cpp @@ -31,6 +31,15 @@ Log::Log(LV2_Log_Log* log, URIs& uris) , _trace(false) {} +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) { -- cgit v1.2.1