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) \
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#pragma warning(disable:4311)
|
||||
#include <windows.h>
|
||||
#include <tlhelp32.h>
|
||||
#include <stdio.h>
|
||||
#include <cstdio>
|
||||
#include <tchar.h>
|
||||
#define _NO_CVCONST_H
|
||||
#include <dbghelp.h>
|
||||
@@ -771,7 +771,7 @@ PEXCEPTION_POINTERS pExceptionInfo)
|
||||
// Given an exception code, returns a pointer to a static string with a
|
||||
// description of the exception
|
||||
//======================================================================
|
||||
LPTSTR WheatyExceptionReport::GetExceptionString(DWORD dwCode)
|
||||
LPCTSTR WheatyExceptionReport::GetExceptionString(DWORD dwCode)
|
||||
{
|
||||
#define EXCEPTION(x) case EXCEPTION_##x: return _T(#x);
|
||||
|
||||
@@ -1108,7 +1108,7 @@ DWORD dwTypeIndex,
|
||||
DWORD_PTR offset,
|
||||
bool & bHandled,
|
||||
char const* Name,
|
||||
char* /*suffix*/,
|
||||
char const* /*suffix*/,
|
||||
bool newSymbol,
|
||||
bool logChildren)
|
||||
{
|
||||
|
||||
@@ -167,7 +167,7 @@ class WheatyExceptionReport
|
||||
static BOOL _GetProcessorName(TCHAR* sProcessorName, DWORD maxcount);
|
||||
|
||||
// Helper functions
|
||||
static LPTSTR GetExceptionString(DWORD dwCode);
|
||||
static LPCTSTR GetExceptionString(DWORD dwCode);
|
||||
static BOOL GetLogicalAddress(PVOID addr, PTSTR szModule, DWORD len,
|
||||
DWORD& section, DWORD_PTR& offset);
|
||||
|
||||
@@ -177,7 +177,7 @@ class WheatyExceptionReport
|
||||
|
||||
static bool FormatSymbolValue(PSYMBOL_INFO, STACKFRAME64 *);
|
||||
|
||||
static void DumpTypeIndex(DWORD64, DWORD, DWORD_PTR, bool &, char const*, char*, bool, bool);
|
||||
static void DumpTypeIndex(DWORD64, DWORD, DWORD_PTR, bool &, char const*, char const*, bool, bool);
|
||||
|
||||
static void FormatOutputValue(char * pszCurrBuffer, BasicType basicType, DWORD64 length, PVOID pAddress, size_t bufferSize, size_t countOverride = 0);
|
||||
|
||||
|
||||
Reference in new issue
Block a user