diff options
Diffstat (limited to 'lib/base')
| -rw-r--r-- | lib/base/eerror.cpp | 4 | ||||
| -rw-r--r-- | lib/base/eerror.h | 6 |
2 files changed, 4 insertions, 6 deletions
diff --git a/lib/base/eerror.cpp b/lib/base/eerror.cpp index 2182df49..241b2d3d 100644 --- a/lib/base/eerror.cpp +++ b/lib/base/eerror.cpp @@ -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() { diff --git a/lib/base/eerror.h b/lib/base/eerror.h index 2d4e9790..5a66b31e 100644 --- a/lib/base/eerror.h +++ b/lib/base/eerror.h @@ -142,10 +142,6 @@ void eWriteCrashdump(); #endif // SWIG -#ifndef DEBUG -inline void ePythonOutput(const char *) -{ -} -#endif +void ePythonOutput(const char *); #endif // __E_ERROR__ |
