[bmalloc] IsoHeap should have lower tier using shared IsoPage
[WebKit-https.git] / Source / bmalloc / bmalloc / BCompiler.h
index 4ef835a..c824d2b 100644 (file)
 #define BNO_RETURN
 #endif
 
+/* BFALLTHROUGH */
+
+#if !defined(BFALLTHROUGH) && defined(__cplusplus) && defined(__has_cpp_attribute)
+
+#if __has_cpp_attribute(fallthrough)
+#define BFALLTHROUGH [[fallthrough]]
+#elif __has_cpp_attribute(clang::fallthrough)
+#define BFALLTHROUGH [[clang::fallthrough]]
+#elif __has_cpp_attribute(gnu::fallthrough)
+#define BFALLTHROUGH [[gnu::fallthrough]]
+#endif
+
+#endif // !defined(BFALLTHROUGH) && defined(__cplusplus) && defined(__has_cpp_attribute)
+
+#if !defined(BFALLTHROUGH)
+#define BFALLTHROUGH
+#endif