]> git.saurik.com Git - apple/libplatform.git/blobdiff - include/os/base.h
libplatform-161.tar.gz
[apple/libplatform.git] / include / os / base.h
index 77ab213742ac80691d8c0b7f7a7637eb804f8916..9fa30e42a4f3d0c606ee7fd9973987ce58a9d99c 100644 (file)
 #define OS_NOESCAPE
 #endif
 
+#if defined(__cplusplus) && defined(__clang__)
+#define OS_FALLTHROUGH [[clang::fallthrough]]
+#else
+#define OS_FALLTHROUGH
+#endif
+
 #if __has_feature(assume_nonnull)
 #define OS_ASSUME_NONNULL_BEGIN _Pragma("clang assume_nonnull begin")
 #define OS_ASSUME_NONNULL_END   _Pragma("clang assume_nonnull end")