#if !defined(__cplusplus) || __cplusplus < 201103L #define fallthrough ((void)0) #else #include #ifdef _LIBCPP_VERSION #ifdef _LIBCPP_FALLTHROUGH #define fallthrough _LIBCPP_FALLTHROUGH() #else #define fallthrough [[__fallthrough__]] #endif // _LIBCPP_FALLTHROUGH #else #ifdef __clang__ #define fallthrough [[clang::fallthrough]] #else #define fallthrough [[gnu::fallthrough]] #endif // __clang__ #endif // _LIBCPP_VERSION #endif // __cplusplus