 |
naev 0.12.6
|
7#define __has_attribute( x ) 0
10#if __has_attribute( warn_unused_result )
11#define USE_RESULT __attribute__( ( warn_unused_result ) )
17#if __has_attribute( nonnull )
18#define NONNULL( ... ) __attribute__( ( nonnull( __VA_ARGS__ ) ) )
23#if __has_attribute( returns_nonnull )
24#define RETURNS_NONNULL __attribute__( ( returns_nonnull ) )
26#define RETURNS_NONNULL
30#if __has_attribute( sentinel )
31#define SENTINEL( n ) __attribute__( ( sentinel( n ) ) )
36#if __has_attribute( noreturn )
37#define NORETURN __attribute__( ( noreturn ) )
42#if __has_attribute( format )
43#define FORMAT( ... ) __attribute__( ( format( __VA_ARGS__ ) ) )
48#if __has_attribute( format_arg )
49#define FORMAT_ARG( n ) __attribute__( ( format_arg( n ) ) )
51#define FORMAT_ARG( n )
54#if __has_attribute( deprecated )
55#define DEPRECATED( msg ) __attribute__( ( deprecated( msg ) ) )
57#define DEPRECATED( msg )
60#if __has_attribute( always_inline )
61#define ALWAYS_INLINE __attribute__( ( always_inline ) )
67#if __has_attribute( diagnose_if )
68#define WARN_IF( c, m ) __attribute__( ( diagnose_if( c, m, "warning" ) ) )
69#define ERR_IF( c, m ) __attribute__( ( diagnose_if( c, m, "error" ) ) )
71#define WARN_IF( c, m )
76#if __has_attribute( fallthrough )
77#define FALLTHROUGH __attribute__( ( fallthrough ) )
79#define FALLTHROUGH (void)0