Index: Source/wtf/Compiler.h |
diff --git a/Source/wtf/Compiler.h b/Source/wtf/Compiler.h |
index bfe5ca26a1cafd6a9a6fd258790b7c7ffec4ccad..b2713b6faef625abe023467e9443ec2526a5fee5 100644 |
--- a/Source/wtf/Compiler.h |
+++ b/Source/wtf/Compiler.h |
@@ -220,4 +220,12 @@ |
#define WTF_PRETTY_FUNCTION __FUNCTION__ |
#endif |
+/* WTF_PURE_FUNCTION */ |
+ |
+#if COMPILER(GCC) |
+#define WTF_PURE_FUNCTION __attribute__((pure)) |
+#else |
+#define WTF_PURE_FUNCTION /* nothing */ |
+#endif |
+ |
#endif /* WTF_Compiler_h */ |