| Index: compiled/debug.h | 
| =================================================================== | 
| --- a/compiled/debug.h | 
| +++ b/compiled/debug.h | 
| @@ -21,36 +21,44 @@ | 
| #include <emscripten/trace.h> | 
|  | 
| #if defined(assert) | 
| #undef assert | 
| #endif | 
|  | 
| class String; | 
|  | 
| +extern "C" | 
| +{ | 
| +  void LogString(const String& str); | 
| +  void LogInteger(int i); | 
| +  void LogPointer(const void* ptr); | 
| +  void LogError(const String& str); | 
| +} | 
| + | 
| struct console_type | 
| { | 
| static void log(const String& str) | 
| { | 
| -    EM_ASM_ARGS(console.log(readString($0)), &str); | 
| +    LogString(str); | 
| } | 
|  | 
| static void log(int i) | 
| { | 
| -    EM_ASM_ARGS(console.log($0), i); | 
| +    LogInteger(i); | 
| } | 
|  | 
| -  static void log(void* ptr) | 
| +  static void log(const void* ptr) | 
| { | 
| -    EM_ASM_ARGS(console.log($0), ptr); | 
| +    LogPointer(ptr); | 
| } | 
|  | 
| static void error(const String& str) | 
| { | 
| -    EM_ASM_ARGS(console.error(new Error(readString($0)).stack), &str); | 
| +    LogError(str); | 
| } | 
| }; | 
|  | 
| static console_type console; | 
|  | 
| #if defined(DEBUG) | 
| inline void assert(bool condition, const String& str) | 
| { | 
|  |