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: 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/tools.h ('k') | lib/compiledTools.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 #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 extern "C"
13 {
14 const char* EMSCRIPTEN_KEEPALIVE getException(const std::exception& e)
15 {
16 return e.what();
17 }
18 }
OLDNEW
« no previous file with comments | « compiled/tools.h ('k') | lib/compiledTools.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld