| Left: | ||
| Right: |
| OLD | NEW |
|---|---|
| (Empty) | |
| 1 #ifndef ADBLOCK_PLUS_DEBUG_H | |
| 2 #define ADBLOCK_PLUS_DEBUG_H | |
| 3 | |
| 4 #include <string> | |
| 5 | |
| 6 #include <emscripten.h> | |
| 7 | |
| 8 struct console_type | |
| 9 { | |
| 10 static void log(const std::u16string& str) | |
| 11 { | |
| 12 EM_ASM_ARGS(console.log(getStringData($0)), &str); | |
| 13 } | |
| 14 | |
| 15 static void log(int i) | |
| 16 { | |
| 17 EM_ASM_ARGS(console.log($0), i); | |
| 18 } | |
| 19 | |
| 20 static void log(void* ptr) | |
| 21 { | |
| 22 EM_ASM_ARGS(console.log($0), ptr); | |
| 23 } | |
| 24 }; | |
| 25 | |
| 26 static console_type console; | |
| 27 | |
| 28 #endif | |
| OLD | NEW |