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: Fix debug.h to be aligned with assert2 (define vs function) and get rid of a warning in generator.cpp Created Nov. 21, 2017, 2: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
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
hub 2017/11/21 16:48:39 the anonymous namespace above should be within thi
sergei 2017/11/22 09:39:26 Here this anonymous namespace can be in ABP_NS nam
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

Powered by Google App Engine
This is Rietveld