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: Fix a few memory leaks (add ref issues) Created Feb. 9, 2018, 6:13 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/String.h ('k') | compiled/filter/ElemHideBase.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « compiled/String.h ('k') | compiled/filter/ElemHideBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld