summaryrefslogtreecommitdiff
path: root/test/Effects11/Inc/d3dx11dbg.h
diff options
context:
space:
mode:
authorJason Maskell <[email protected]>2016-05-09 10:39:54 +0200
committerJason Maskell <[email protected]>2016-05-09 10:39:54 +0200
commit79b3462799c28af8ba586349bd671b1b56e72353 (patch)
tree3b06e36c390254c0dc7f3733a0d32af213d87293 /test/Effects11/Inc/d3dx11dbg.h
downloadwaveworks_archive-79b3462799c28af8ba586349bd671b1b56e72353.tar.xz
waveworks_archive-79b3462799c28af8ba586349bd671b1b56e72353.zip
Initial commit with PS4 and XBone stuff trimmed.
Diffstat (limited to 'test/Effects11/Inc/d3dx11dbg.h')
-rw-r--r--test/Effects11/Inc/d3dx11dbg.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/test/Effects11/Inc/d3dx11dbg.h b/test/Effects11/Inc/d3dx11dbg.h
new file mode 100644
index 0000000..49ed3b3
--- /dev/null
+++ b/test/Effects11/Inc/d3dx11dbg.h
@@ -0,0 +1,66 @@
+//////////////////////////////////////////////////////////////////////////////
+//
+// Copyright (C) Microsoft Corporation. All Rights Reserved.
+//
+// File: d3dx11dbg.h
+// Content: D3DX11 debugging functions
+//
+//////////////////////////////////////////////////////////////////////////////
+
+
+#ifndef __D3DX11DBG_H__
+#define __D3DX11DBG_H__
+
+#ifndef _PREFAST_
+
+#pragma warning( disable: 4068 )
+
+#endif
+
+
+#include <strsafe.h>
+#include <new>
+
+#undef NEW
+#undef DELETE
+
+#define NEW new (std::nothrow)
+#define NEW_PROTO_ARGS size_t s, const std::nothrow_t& t
+
+
+
+typedef signed char INT8;
+typedef signed short INT16;
+typedef unsigned char UINT8;
+typedef unsigned short UINT16;
+
+
+//----------------------------------------------------------------------------
+// DPF
+//----------------------------------------------------------------------------
+
+#ifdef FXDPF
+void cdecl D3DXDebugPrintf(UINT lvl, LPCSTR szFormat, ...);
+#define DPF D3DXDebugPrintf
+#else // !FXDPF
+#pragma warning(disable:4002)
+#define DPF() 0
+#endif // !FXDPF
+
+
+//----------------------------------------------------------------------------
+// D3DXASSERT
+//----------------------------------------------------------------------------
+
+#if _DEBUG
+int WINAPI D3DXDebugAssert(LPCSTR szFile, int nLine, LPCSTR szCondition);
+#define D3DXASSERT(condition) \
+ do { if(!(condition)) D3DXDebugAssert(__FILE__, __LINE__, #condition); } while(0)
+#else // !_DEBUG
+#define D3DXASSERT(condition) 0
+#endif // !_DEBUG
+
+
+
+#endif // __D3DX11DBG_H__
+