fix
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 15 Dec 2006 16:19:33 +0000 (16:19 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 15 Dec 2006 16:19:33 +0000 (16:19 +0000)
lib/base/eerror.cpp
lib/base/eerror.h

index 2182df4..241b2d3 100644 (file)
@@ -126,15 +126,17 @@ void eWarning(const char* fmt, ...)
        if (logOutputConsole)
                fprintf(stderr, "%s\n", buf);
 }
+#endif // DEBUG
 
 void ePythonOutput(const char *string)
 {
+#ifdef DEBUG
        singleLock s(DebugLock);
        logOutput(lvlWarning, string);
        if (logOutputConsole)
                fwrite(string, 1, strlen(string), stderr);
+#endif
 }
-#endif // DEBUG
 
 void eWriteCrashdump()
 {
index 2d4e979..5a66b31 100644 (file)
@@ -142,10 +142,6 @@ void eWriteCrashdump();
 
 #endif // SWIG
 
-#ifndef DEBUG
-inline void ePythonOutput(const char *)
-{
-}
-#endif
+void ePythonOutput(const char *);
 
 #endif // __E_ERROR__