19 lines
328 B
C++
19 lines
328 B
C++
#ifndef Inline_h__
|
|||
|
|
#define Inline_h__
|
||
|
|
|
||
|
|
#include "CompilerDetect.h"
|
||
|
|
|
||
|
|
namespace LifeCore{
|
||
|
|
|
||
|
|
#if defined(COMPILER_MSVC)
|
||
|
|
#define FORCEINLINE __forceinline
|
||
|
|
#elif defined(COMPILER_GCC)
|
||
|
|
#define FORCEINLINE __attribute__((always_inline))
|
||
|
|
#else
|
||
|
|
#define FORCEINLINE inline
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#define INLINE inline
|
||
|
|
}
|
||
|
|
#endif // Inline_h__
|