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

Side by Side Diff: compiled/tools.cpp

Issue 29333474: Issue 4125 - [emscripten] Convert filter classes to C++ (Closed)
Patch Set: Fixed some bugs and exposed/tested more properties Created Jan. 15, 2016, 3: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
OLDNEW
(Empty)
1 #include "tools.h"
2
3 char16_t* stringToBuffer(const std::u16string& str, size_t* resultLen)
4 {
5 size_t length = str.length();
6 char16_t* buffer = new char16_t[length];
7 str.copy(buffer, length, 0);
8 *resultLen = length;
9 return buffer;
10 }
11
12 // API
13 extern "C"
14 {
15 const char* EMSCRIPTEN_KEEPALIVE getException(const std::exception& e)
16 {
17 return e.what();
18 }
19 }
OLDNEW
« compiled/Filter.cpp ('K') | « compiled/tools.h ('k') | lib/compiledTools.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld