diff options
Diffstat (limited to 'lib/base')
| -rw-r--r-- | lib/base/eerror.cpp | 12 | ||||
| -rw-r--r-- | lib/base/eerror.h | 3 |
2 files changed, 15 insertions, 0 deletions
diff --git a/lib/base/eerror.cpp b/lib/base/eerror.cpp index c60d5b7b..3239ddc5 100644 --- a/lib/base/eerror.cpp +++ b/lib/base/eerror.cpp @@ -80,3 +80,15 @@ void eWarning(const char* fmt, ...) fprintf(stderr, "%s\n", buf); } #endif // DEBUG + +void ePythonOutput(const char *string) +{ + logOutput(lvlWarning, string); + if (logOutputConsole) + fwrite(string, 1, strlen(string), stderr); +} + +void eWriteCrashdump() +{ + /* implement me */ +} diff --git a/lib/base/eerror.h b/lib/base/eerror.h index 91575878..36e43388 100644 --- a/lib/base/eerror.h +++ b/lib/base/eerror.h @@ -207,4 +207,7 @@ inline void DumpUnfreed() #define ASSERT(x) do { } while (0) #endif //DEBUG +void ePythonOutput(const char *); +void eWriteCrashdump(); + #endif // __E_ERROR__ |
