Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1903)

Unified Diff: Source/platform/heap/Visitor.h

Issue 928033003: Ensure that Heap.h (not Visitor.h) is #included from Oilpan user code Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/platform/heap/Visitor.h
diff --git a/Source/platform/heap/Visitor.h b/Source/platform/heap/Visitor.h
index 09f8b613f08e67fd420b0943ab0d366c912195a0..792c886e070672ba361303ed9dd613a34dc13461 100644
--- a/Source/platform/heap/Visitor.h
+++ b/Source/platform/heap/Visitor.h
@@ -31,6 +31,10 @@
#ifndef Visitor_h
#define Visitor_h
+#if !defined(Heap_h) && !defined(Visitor_cpp)
+# error Do not include platform/heap/Visitor.h directly. Include platform/heap/Heap.h instead.
haraken 2015/02/16 04:50:45 Heap.h => Handle.h I don't fully understand a ben
+#endif
+
#include "platform/PlatformExport.h"
#include "platform/heap/StackFrameDepth.h"
#include "platform/heap/ThreadState.h"

Powered by Google App Engine
This is Rietveld 408576698