initial import
[picodrive.git] / platform / uiq3 / engine / debug.h
diff --git a/platform/uiq3/engine/debug.h b/platform/uiq3/engine/debug.h
new file mode 100644 (file)
index 0000000..bcd8287
--- /dev/null
@@ -0,0 +1,27 @@
+#include <e32std.h>\r
+\r
+#define __DEBUG_PRINT_C\r
+#define __DEBUG_PRINT_FILE\r
+\r
+#if defined(__DEBUG_PRINT) || defined(__WINS__)\r
+       #include <e32svr.h> // RDebug\r
+       #ifdef __DEBUG_PRINT_FILE\r
+               void debugPrintFile(TRefByValue<const TDesC> aFmt, ...);\r
+               #define DEBUGPRINT debugPrintFile\r
+       #else\r
+               #define DEBUGPRINT RDebug::Print\r
+       #endif\r
+       TDesC* DO_CONV(const char* s);\r
+       #ifdef __DEBUG_PRINT_C\r
+               #ifdef __cplusplus\r
+               extern "C"\r
+               #endif\r
+               void dprintf(char *format, ...);\r
+       #endif\r
+#else\r
+       #define DEBUGPRINT(x...)\r
+       #undef __DEBUG_PRINT_C\r
+       #undef __DEBUG_PRINT_FILE\r
+#endif\r
+\r
+void ExceptionHandler(TExcType exc);\r