Core/Misc: Changed compiler detection to better support compilers that pretend to be something else, such as clang-cl is both msvc and clang at the same time
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
terminates the application.
|
||||
*/
|
||||
|
||||
#if TRINITY_COMPILER == TRINITY_COMPILER_MICROSOFT
|
||||
#if TRINITY_COMPILER_IS_MICROSOFT
|
||||
#define Unreachable() (__assume(false))
|
||||
#else
|
||||
#define Unreachable() (__builtin_unreachable())
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace Trinity
|
||||
}
|
||||
} // namespace Trinity
|
||||
|
||||
#if TRINITY_COMPILER == TRINITY_COMPILER_MICROSOFT
|
||||
#if TRINITY_COMPILER_IS_MICROSOFT
|
||||
#define ASSERT_BEGIN __pragma(warning(push)) __pragma(warning(disable: 4127))
|
||||
#define ASSERT_END __pragma(warning(pop))
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user