Added GLM_NEVER_INLINE
This commit is contained in:
parent
4fc68ffe49
commit
c23cb8cd59
@ -687,15 +687,20 @@
|
|||||||
#if defined(GLM_FORCE_INLINE)
|
#if defined(GLM_FORCE_INLINE)
|
||||||
# if GLM_COMPILER & GLM_COMPILER_VC
|
# if GLM_COMPILER & GLM_COMPILER_VC
|
||||||
# define GLM_INLINE __forceinline
|
# define GLM_INLINE __forceinline
|
||||||
|
# define GLM_NEVER_INLINE __declspec((noinline))
|
||||||
# elif GLM_COMPILER & GLM_COMPILER_GCC
|
# elif GLM_COMPILER & GLM_COMPILER_GCC
|
||||||
# define GLM_INLINE __attribute__((always_inline)) inline
|
# define GLM_INLINE inline __attribute__((__always_inline__))
|
||||||
|
# define GLM_NEVER_INLINE __attribute__((__noinline__))
|
||||||
# elif GLM_COMPILER & GLM_COMPILER_CLANG
|
# elif GLM_COMPILER & GLM_COMPILER_CLANG
|
||||||
# define GLM_INLINE __attribute__((always_inline))
|
# define GLM_INLINE __attribute__((__always_inline__))
|
||||||
|
# define GLM_NEVER_INLINE __attribute__((__noinline__))
|
||||||
# else
|
# else
|
||||||
# define GLM_INLINE inline
|
# define GLM_INLINE inline
|
||||||
|
# define GLM_NEVER_INLINE
|
||||||
# endif//GLM_COMPILER
|
# endif//GLM_COMPILER
|
||||||
#else
|
#else
|
||||||
# define GLM_INLINE inline
|
# define GLM_INLINE inline
|
||||||
|
# define GLM_NEVER_INLINE
|
||||||
#endif//defined(GLM_FORCE_INLINE)
|
#endif//defined(GLM_FORCE_INLINE)
|
||||||
|
|
||||||
#define GLM_FUNC_DECL GLM_CUDA_FUNC_DECL
|
#define GLM_FUNC_DECL GLM_CUDA_FUNC_DECL
|
||||||
|
Loading…
x
Reference in New Issue
Block a user