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

Unified Diff: compiled/Utils.h

Issue 29595633: Issue 5870 - Implement the new ElemHideEmulation filter type (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Added missing ABP_NS macros Created Feb. 9, 2018, 8:34 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/Utils.h
===================================================================
--- a/compiled/Utils.h
+++ b/compiled/Utils.h
@@ -19,11 +19,14 @@
#include <string>
#include "base.h"
#include "String.h"
ABP_NS_BEGIN
+// the length of a static string array
+#define LENGTH_OF(x) ((sizeof(x) / sizeof(x[0])) - 1)
+
std::wstring StdWStringFromString(const String& str);
ABP_NS_END

Powered by Google App Engine
This is Rietveld