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:
Shauren
2026-05-10 14:40:49 +02:00
parent 648343e7a4
commit e49105cb68
28 changed files with 75 additions and 45 deletions
+1 -1
View File
@@ -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())
+1 -1
View File
@@ -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