diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-12-15 16:16:49 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-12-15 16:16:49 +0000 |
| commit | dc4073de1957503fcd2a7eed055c55a2265d1212 (patch) | |
| tree | e34a0d272ef7cdfa7b270c722d83ee6c19e93ebb /lib/base/eerror.h | |
| parent | b53a04a99fa077beb07233a8508dad54ddf13e20 (diff) | |
| download | enigma2-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.h | 8 |
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__ |
