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

Side by Side Diff: compiled/InvalidFilter.cpp

Issue 29333474: Issue 4125 - [emscripten] Convert filter classes to C++ (Closed)
Patch Set: Created Jan. 14, 2016, 4:40 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/InvalidFilter.h ('k') | compiled/RegExpFilter.h » ('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 #include <emscripten.h>
2
3 #include "InvalidFilter.h"
4 #include "tools.h"
5
6 InvalidFilter::InvalidFilter(const std::u16string& text, const std::u16string& r eason)
7 : Filter(text), reason(reason)
8 {
9 }
10
11 // API
12 extern "C"
13 {
14 char16_t* EMSCRIPTEN_KEEPALIVE InvalidFilter_get_reason(InvalidFilter* obj, si ze_t* resultLen)
15 {
16 return stringToBuffer(obj->get_reason(), resultLen);
17 }
18 }
OLDNEW
« no previous file with comments | « compiled/InvalidFilter.h ('k') | compiled/RegExpFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld