We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d1b03d commit da6402cCopy full SHA for da6402c
common/xash3d_types.h
@@ -91,8 +91,10 @@ typedef int qboolean;
91
#define NORETURN __attribute__(( noreturn ))
92
#define NONNULL __attribute__(( nonnull ))
93
#define RETURNS_NONNULL __attribute__(( returns_nonnull ))
94
- #if __clang__
95
- #define PFN_RETURNS_NONNULL // clang has bugged returns_nonnull for functions pointers, it's ignored and generates a warning about objective-c? O_o
+ #if __clang__ || __MCST__
+ // clang has bugged returns_nonnull for functions pointers, it's ignored and generates a warning about objective-c? O_o
96
+ // lcc doesn't support it at all
97
+ #define PFN_RETURNS_NONNULL
98
#else
99
#define PFN_RETURNS_NONNULL RETURNS_NONNULL
100
#endif
0 commit comments