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

Unified Diff: compiled/bindings/generator.cpp

Issue 29613616: Issue 6064 - Put C++ code into a configurable namespace (Closed) Base URL: https://github.com/adblockplus/adblockpluscore.git
Patch Set: Created Nov. 21, 2017, 1:53 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « compiled/bindings/generator.h ('k') | compiled/bindings/main.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiled/bindings/generator.cpp
diff --git a/compiled/bindings/generator.cpp b/compiled/bindings/generator.cpp
index 528cffb36ccfd91ea1db1714523d0ae89e5dd738..7ffb27fb55bda084e5198fea96a0ee6e66d99c8e 100644
--- a/compiled/bindings/generator.cpp
+++ b/compiled/bindings/generator.cpp
@@ -20,11 +20,13 @@
#include "generator.h"
#include "library.h"
+ABP_NS_USING
+
namespace
{
std::vector<bindings_internal::ClassInfo> classes;
}
-
+ABP_NS_BEGIN
namespace bindings_internal
{
FunctionInfo::FunctionInfo()
@@ -477,9 +479,10 @@ namespace bindings_internal
printf(" %i: exports.%s,\n", item.first, item.second.c_str());
puts("};");
}
-}
+} // namespace bindings_internal
+ABP_NS_END
-void printBindings()
+void ABP_NS::printBindings()
{
bindings_internal::printHelpers();
« no previous file with comments | « compiled/bindings/generator.h ('k') | compiled/bindings/main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld