X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/d63d2c3c6cbbd574dda4f8b00ebe6c661735edd5..a5307ff8aa3456aa5bec285e7d94d8d7c014d131:/lib/base/eerror.h diff --git a/lib/base/eerror.h b/lib/base/eerror.h index bf913959..476029c7 100644 --- a/lib/base/eerror.h +++ b/lib/base/eerror.h @@ -9,12 +9,12 @@ void eFatal(const char* fmt, ...); -class eString; - enum { lvlDebug=1, lvlWarning=2, lvlFatal=4 }; -extern Signal2 logOutput; +#ifndef SWIG +extern Signal2 logOutput; extern int logOutputConsole; +#endif #ifdef ASSERT #undef ASSERT @@ -24,7 +24,9 @@ extern int logOutputConsole; void eDebug(const char* fmt, ...); void eDebugNoNewLine(const char* fmt, ...); void eWarning(const char* fmt, ...); +#ifndef SWIG #define ASSERT(x) { if (!(x)) eFatal("%s:%d ASSERTION %s FAILED!", __FILE__, __LINE__, #x); } +#endif #else inline void eDebug(const char* fmt, ...) {