aboutsummaryrefslogtreecommitdiff
path: root/lib/base/eerror.h
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-12-15 16:16:49 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-12-15 16:16:49 +0000
commitdc4073de1957503fcd2a7eed055c55a2265d1212 (patch)
treee34a0d272ef7cdfa7b270c722d83ee6c19e93ebb /lib/base/eerror.h
parentb53a04a99fa077beb07233a8508dad54ddf13e20 (diff)
downloadenigma2-dc4073de1957503fcd2a7eed055c55a2265d1212.tar.gz
enigma2-dc4073de1957503fcd2a7eed055c55a2265d1212.zip
fix lock, fix non working ASSERT when DEBUG is not defined
Diffstat (limited to 'lib/base/eerror.h')
-rw-r--r--lib/base/eerror.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/base/eerror.h b/lib/base/eerror.h
index e7c33a0b..2d4e9790 100644
--- a/lib/base/eerror.h
+++ b/lib/base/eerror.h
@@ -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__