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: address comments Created Nov. 22, 2017, 9:36 a.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..b6189975617410d9c5e4848e79104cb755aa2c7e 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,7 +479,7 @@ namespace bindings_internal
printf(" %i: exports.%s,\n", item.first, item.second.c_str());
puts("};");
}
-}
+} // namespace bindings_internal
void printBindings()
{
@@ -488,3 +490,5 @@ void printBindings()
for (const auto& cls : classes)
bindings_internal::printClassMapping(cls);
}
+
+ABP_NS_END
« 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