mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
common: xash3d_types: add macro MAYBE_UNUSED
This commit is contained in:
@@ -114,6 +114,7 @@ typedef int qboolean;
|
||||
#define FORMAT_CHECK( x ) __attribute__(( format( printf, x, x + 1 )))
|
||||
#define ALLOC_CHECK( x ) __attribute__(( alloc_size( x )))
|
||||
#define WARN_UNUSED_RESULT __attribute__(( warn_unused_result ))
|
||||
#define MAYBE_UNUSED __attribute__(( unused ))
|
||||
#define RENAME_SYMBOL( x ) asm( x )
|
||||
#if !defined( offsetof )
|
||||
#define offsetof( s, m ) __builtin_offsetof( s, m )
|
||||
@@ -198,6 +199,10 @@ typedef int qboolean;
|
||||
#define WARN_UNUSED_RESULT
|
||||
#endif // !defined( WARN_UNUSED_RESULT )
|
||||
|
||||
#if !defined( MAYBE_UNUSED )
|
||||
#define MAYBE_UNUSED
|
||||
#endif // !defined( MAYBE_UNUSED )
|
||||
|
||||
#if !defined( RENAME_SYMBOL )
|
||||
#define RENAME_SYMBOL( x )
|
||||
#endif // !defined( RENAME_SYMBOL )
|
||||
|
||||
Reference in New Issue
Block a user