fix lock, fix non working ASSERT when DEBUG is not defined
[enigma2.git] / lib / base / eerror.h
index e7c33a0bb8d3dfb08d8abe0b8eff8bb54a4aee5f..2d4e979038d244f40ef1172f9324a52217f4b332 100644 (file)
@@ -135,13 +135,17 @@ enum { lvlDebug=1, lvlWarning=2, lvlFatal=4 };
     inline void eWarning(const char* fmt, ...)
     {
     }
-    #define ASSERT(x) do { } while (0)
+    #define ASSERT(x) do { x; } while (0)
 #endif //DEBUG
 
 void eWriteCrashdump();
 
 #endif // SWIG
 
-void ePythonOutput(const char *);
+#ifndef DEBUG
+inline void ePythonOutput(const char *)
+{
+}
+#endif
 
 #endif // __E_ERROR__