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

Side by Side Diff: compiled/bindings/runtime_utils.cpp

Issue 29613616: Issue 6064 - Put C++ code into a configurable namespace (Closed) Base URL: https://github.com/adblockplus/adblockpluscore.git
Patch Set: rebase Created Feb. 6, 2018, 9:54 a.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
1 #include "runtime.h" 1 #include "runtime.h"
2 #include "../intrusive_ptr.h" 2 #include "../intrusive_ptr.h"
3 #include "../String.h" 3 #include "../String.h"
4 4
5 ABP_NS_USING
6
5 extern "C" 7 extern "C"
6 { 8 {
7 void BINDINGS_EXPORTED InitString(DependentString* str, 9 void BINDINGS_EXPORTED InitString(DependentString* str,
8 String::value_type* data, String::size_type len) 10 String::value_type* data, String::size_type len)
9 { 11 {
10 // String is already allocated on stack, we merely need to call 12 // String is already allocated on stack, we merely need to call
11 // constructor. 13 // constructor.
12 new (str) DependentString(data, len); 14 new (str) DependentString(data, len);
13 } 15 }
14 16
(...skipping 21 matching lines...) Expand all
36 const String& str) 38 const String& str)
37 { 39 {
38 return str.data(); 40 return str.data();
39 } 41 }
40 42
41 void BINDINGS_EXPORTED ReleaseRef(ref_counted* ptr) 43 void BINDINGS_EXPORTED ReleaseRef(ref_counted* ptr)
42 { 44 {
43 ptr->ReleaseRef(); 45 ptr->ReleaseRef();
44 } 46 }
45 } 47 }
OLDNEW
« compiled/base.h ('K') | « compiled/bindings/main.cpp ('k') | compiled/debug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld