msvc: enable /Zc:preprocessor and make build compile cleanly

This commit is contained in:
Shawn Hoffman
2020-08-27 21:58:48 -07:00
parent 4db06bf85b
commit 969ea6e4f5
6 changed files with 13 additions and 57 deletions

View File

@ -15,12 +15,6 @@
#include "Common/CommonTypes.h"
#include "Common/MsgHandler.h"
#define CHECK(cond, Message, ...) \
if (!(cond)) \
{ \
PanicAlert("%s failed in %s at line %d: " Message, __func__, __FILE__, __LINE__, __VA_ARGS__); \
}
namespace DX11
{
using Microsoft::WRL::ComPtr;

View File

@ -9,13 +9,6 @@
#include "Common/MsgHandler.h"
#include "VideoBackends/D3DCommon/Common.h"
#define CHECK(cond, Message, ...) \
if (!(cond)) \
{ \
PanicAlert(__FUNCTION__ " failed in %s at line %d: " Message, __FILE__, __LINE__, \
__VA_ARGS__); \
}
namespace DX12
{
using Microsoft::WRL::ComPtr;

View File

@ -12,6 +12,13 @@
#include "Common/CommonTypes.h"
#define CHECK(cond, Message, ...) \
if (!(cond)) \
{ \
PanicAlert("%s failed in %s at line %d: " Message, __func__, __FILE__, __LINE__, \
##__VA_ARGS__); \
}
struct IDXGIFactory;
enum class AbstractTextureFormat : u32;