Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: compiled/debug.h

Issue 29333474: Issue 4125 - [emscripten] Convert filter classes to C++ (Closed)
Patch Set: Almost complete implementation, missing CSS property filters Created Jan. 20, 2016, 12:04 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « compiled/api.cpp ('k') | compiled/shell.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « compiled/api.cpp ('k') | compiled/shell.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld