fixes for unreal use

This commit is contained in:
2024-10-27 21:18:41 -04:00
parent 420f452d35
commit 0f2763a115
2 changed files with 26 additions and 0 deletions

View File

@ -150,4 +150,20 @@
# endif
#endif
#ifndef neverinline
# ifdef GEN_COMPILER_MSVC
# define neverinline __declspec( noinline )
# elif defined(GEN_COMPILER_GCC)
# define neverinline __attribute__( ( __noinline__ ) )
# elif defined(GEN_COMPILER_CLANG)
# if __has_attribute(__always_inline__)
# define neverinline __attribute__( ( __noinline__ ) )
# else
# define neverinline
# endif
# else
# define neverinline
# endif
#endif
#pragma endregion Macros