mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-17 01:21:12 +00:00
The always_inline
does not inline the function...
...it just forces inline functions to be inlined, regardless of restrictions.
This commit is contained in:
parent
66dcc8edf3
commit
75f7f7092e
1 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ typedef unsigned char byte;
|
|||
#define YQ2_ATTR_NORETURN _Noreturn
|
||||
# if defined(__GNUC__)
|
||||
#define YQ2_ATTR_MALLOC __attribute__ ((__malloc__))
|
||||
#define YQ2_ATTR_INLINE __attribute__((always_inline))
|
||||
#define YQ2_ATTR_INLINE __attribute__((always_inline)) inline
|
||||
# elif defined(_MSC_VER)
|
||||
#define YQ2_ATTR_MALLOC __declspec(restrict)
|
||||
# else
|
||||
|
@ -75,7 +75,7 @@ typedef unsigned char byte;
|
|||
// must be used as prefix (YQ2_ATTR_NORETURN void bla();)!
|
||||
#define YQ2_ATTR_NORETURN __attribute__ ((noreturn))
|
||||
#define YQ2_ATTR_MALLOC __attribute__ ((__malloc__))
|
||||
#define YQ2_ATTR_INLINE __attribute__((always_inline))
|
||||
#define YQ2_ATTR_INLINE __attribute__((always_inline)) inline
|
||||
#elif defined(_MSC_VER)
|
||||
// Note: We prefer VS2019 16.8 or newer in C11 mode (/std:c11),
|
||||
// then the __STDC_VERSION__ >= 201112L case above is used
|
||||
|
|
Loading…
Reference in a new issue