mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-25 22:34:24 +00:00
common: xash3d_types: add NONNULL attribute
This commit is contained in:
parent
fc55a685e3
commit
02b8037f33
@ -86,16 +86,19 @@ typedef uint64_t longtime_t;
|
|||||||
#endif
|
#endif
|
||||||
#define _format(x) __attribute__((format(printf, x, x+1)))
|
#define _format(x) __attribute__((format(printf, x, x+1)))
|
||||||
#define NORETURN __attribute__((noreturn))
|
#define NORETURN __attribute__((noreturn))
|
||||||
|
#define NONNULL __attribute__((nonnull))
|
||||||
#elif defined(_MSC_VER)
|
#elif defined(_MSC_VER)
|
||||||
#define EXPORT __declspec( dllexport )
|
#define EXPORT __declspec( dllexport )
|
||||||
#define GAME_EXPORT
|
#define GAME_EXPORT
|
||||||
#define _format(x)
|
#define _format(x)
|
||||||
#define NORETURN
|
#define NORETURN
|
||||||
|
#define NONNULL
|
||||||
#else
|
#else
|
||||||
#define EXPORT
|
#define EXPORT
|
||||||
#define GAME_EXPORT
|
#define GAME_EXPORT
|
||||||
#define _format(x)
|
#define _format(x)
|
||||||
#define NORETURN
|
#define NORETURN
|
||||||
|
#define NONNULL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ( __GNUC__ >= 3 )
|
#if ( __GNUC__ >= 3 )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user