Index: Source/wtf/Compiler.h |
diff --git a/Source/wtf/Compiler.h b/Source/wtf/Compiler.h |
index 67050694ebb54804881bf0f0150774c80da3941b..5276f15e143c470d91d439a221569eb83934f1d2 100644 |
--- a/Source/wtf/Compiler.h |
+++ b/Source/wtf/Compiler.h |
@@ -256,4 +256,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 */ |