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

Side by Side Diff: compiled/api.h

Issue 29333474: Issue 4125 - [emscripten] Convert filter classes to C++ (Closed)
Patch Set: Back to manual approach for API Created Jan. 18, 2016, 12:41 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/WhiteListFilter.cpp ('k') | compiled/api.cpp » ('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_TOOLS_H
2 #define ADBLOCK_PLUS_TOOLS_H
3
4 #define PROPERTY(classprefix, type, name, getter, setter) \
5 private:\
6 type name;\
7 public:\
8 type getter() const\
9 {\
10 return name;\
11 }\
12 void setter(type value)\
13 {\
14 if (name != value)\
15 {\
16 type oldvalue = value;\
17 name = value;\
18 /* TODO FilterNotifier.triggerListeners(#classprefix "." #name, this, value, oldValue); */\
19 }\
20 }
21
22 #define FILTER_PROPERTY(type, name, getter, setter) \
23 PROPERTY(filter, type, name, getter, setter)
24
25 #endif
OLDNEW
« no previous file with comments | « compiled/WhiteListFilter.cpp ('k') | compiled/api.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld