Build: enable C++20 and updated all compiler requirements
* ported some header and cmake updates from master branch
This commit is contained in:
1 parent
185c80dd96
commit
f34534465a
67 files changed
+792
-134
No files matched your search
@@ -35,10 +35,12 @@
|
||||
|
||||
#if TRINITY_PLATFORM == TRINITY_PLATFORM_WINDOWS
|
||||
#include <Windows.h>
|
||||
#include <intrin.h>
|
||||
#define Crash(message) \
|
||||
ULONG_PTR execeptionArgs[] = { reinterpret_cast<ULONG_PTR>(strdup(message)), reinterpret_cast<ULONG_PTR>(_ReturnAddress()) }; \
|
||||
RaiseException(EXCEPTION_ASSERTION_FAILURE, 0, 2, execeptionArgs);
|
||||
#else
|
||||
#include <cstring>
|
||||
// should be easily accessible in gdb
|
||||
extern "C" { TC_COMMON_API char const* TrinityAssertionFailedMessage = nullptr; }
|
||||
#define Crash(message) \
|
||||
|
||||
Reference in new issue
Block a user