Loading...
Searching...
No Matches
Go to the documentation of this file.
32#if defined( __has_attribute )
33 #define KI_HAS_ATTRIBUTE( x ) __has_attribute( x )
35 #define KI_HAS_ATTRIBUTE( x ) 0
39#if defined( __cplusplus ) && defined( __has_cpp_attribute )
40 #define KI_HAS_CPP_ATTRIBUTE( x ) __has_cpp_attribute( x )
42 #define KI_HAS_CPP_ATTRIBUTE( x ) 0
61#if __cplusplus >= 201703L
63 #define KI_FALLTHROUGH [[fallthrough]]
65#elif KI_HAS_CPP_ATTRIBUTE( clang::fallthrough )
67 #define KI_FALLTHROUGH [[clang::fallthrough]]
69#elif KI_HAS_CPP_ATTRIBUTE( gnu::fallthrough )
71 #define KI_FALLTHROUGH [[gnu::fallthrough]]
73#elif defined( __GNUC__ ) && __GNUC__ >= 7
75 #define KI_FALLTHROUGH __attribute__ ((fallthrough))
79 #define KI_FALLTHROUGH ( ( void ) 0 )
90#define TO_STR(x) TO_STR2(x)
92#define UNIMPLEMENTED_FOR( type ) \
93 wxFAIL_MSG( wxString::Format( wxT( "%s: unimplemented for %s" ), __FUNCTION__, type ) )