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

Unified Diff: compiled/debug.h

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/runtime_utils.cpp ('k') | compiled/filter/ActiveFilter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiled/debug.h
diff --git a/compiled/debug.h b/compiled/debug.h
index f8cb40203618cbb25f548e22cd4ca167232746ad..ab9099baae63529756063086b13ffeec0dc48d1b 100644
--- a/compiled/debug.h
+++ b/compiled/debug.h
@@ -17,8 +17,10 @@
#pragma once
+#include "base.h"
#include "library.h"
+ABP_NS_BEGIN
class String;
struct console_type
@@ -56,9 +58,13 @@ inline void assert2(bool condition, const String& str)
#define assert2(condition, str)
#endif
+ABP_NS_END
+
#if defined(__EMSCRIPTEN_TRACING__)
#include <emscripten/trace.h>
+ABP_NS_BEGIN
+
inline void init_tracing()
{
emscripten_trace_configure("http://127.0.0.1:5000/", "MyApplication");
@@ -84,8 +90,12 @@ inline void exit_context()
emscripten_trace_exit_context();
}
+ABP_NS_END
+
#else // defined(__EMSCRIPTEN_TRACING__)
+ABP_NS_BEGIN
+
inline void init_tracing()
{
}
@@ -106,4 +116,6 @@ inline void exit_context()
{
}
+ABP_NS_END
+
#endif // defined(__EMSCRIPTEN_TRACING__)
« no previous file with comments | « compiled/bindings/runtime_utils.cpp ('k') | compiled/filter/ActiveFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld