feat(Core/Misc): replace all prefix preprocessor defines from CompilerDefs with AC_ (#2419)

This commit is contained in:
Kargatum
2019-11-15 23:27:31 +07:00
committed by GitHub
parent f9a8de9be7
commit a3206c56dc
12 changed files with 48 additions and 51 deletions

View File

@@ -22,7 +22,7 @@
terminates the application.
*/
#if PLATFORM == PLATFORM_WINDOWS
#if AC_PLATFORM == AC_PLATFORM_WINDOWS
#include <Windows.h>
#define Crash(message) \
ULONG_PTR execeptionArgs[] = { reinterpret_cast<ULONG_PTR>(strdup(message)), reinterpret_cast<ULONG_PTR>(_ReturnAddress()) }; \

View File

@@ -29,7 +29,7 @@ namespace Trinity
std::string GetDebugInfo();
#if COMPILER == COMPILER_MICROSOFT
#if AC_COMPILER == AC_COMPILER_MICROSOFT
#define ASSERT_BEGIN __pragma(warning(push)) __pragma(warning(disable: 4127))
#define ASSERT_END __pragma(warning(pop))
#else
@@ -37,7 +37,7 @@ std::string GetDebugInfo();
#define ASSERT_END
#endif
#if PLATFORM == PLATFORM_WINDOWS
#if AC_PLATFORM == AC_PLATFORM_WINDOWS
#define EXCEPTION_ASSERTION_FAILURE 0xC0000420L
#endif

View File

@@ -5,7 +5,7 @@
//==========================================
#include "CompilerDefs.h"
#if PLATFORM == PLATFORM_WINDOWS && !defined(__MINGW32__)
#if AC_PLATFORM == AC_PLATFORM_WINDOWS && !defined(__MINGW32__)
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif

View File

@@ -1,7 +1,7 @@
#ifndef _WHEATYEXCEPTIONREPORT_
#define _WHEATYEXCEPTIONREPORT_
#if PLATFORM == PLATFORM_WINDOWS && !defined(__MINGW32__)
#if AC_PLATFORM == AC_PLATFORM_WINDOWS && !defined(__MINGW32__)
#include <winnt.h>
#include <winternl.h>