summaryrefslogtreecommitdiff
path: root/test/d3d11/common/dxerr.h
diff options
context:
space:
mode:
authorJason Maskell <[email protected]>2016-05-16 15:00:36 +0200
committerJason Maskell <[email protected]>2016-05-16 15:00:36 +0200
commit3eb017d032e0c542401ea202f7a62b7c7ddcd498 (patch)
tree6470077bdc344f1493778976917f7217a3159707 /test/d3d11/common/dxerr.h
parentProject now compiles with Cmake. (diff)
downloadwaveworks_archive-3eb017d032e0c542401ea202f7a62b7c7ddcd498.tar.xz
waveworks_archive-3eb017d032e0c542401ea202f7a62b7c7ddcd498.zip
Added the test_d3d11 app to the solution. Not compiling yet, mostly a paranoia commit.
Diffstat (limited to 'test/d3d11/common/dxerr.h')
-rw-r--r--test/d3d11/common/dxerr.h78
1 files changed, 0 insertions, 78 deletions
diff --git a/test/d3d11/common/dxerr.h b/test/d3d11/common/dxerr.h
deleted file mode 100644
index 48a34c6..0000000
--- a/test/d3d11/common/dxerr.h
+++ /dev/null
@@ -1,78 +0,0 @@
-//--------------------------------------------------------------------------------------
-// File: DXErr.h
-//
-// DirectX Error Library
-//
-// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
-// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
-// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
-// PARTICULAR PURPOSE.
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-//--------------------------------------------------------------------------------------
-
-// This version only supports UNICODE.
-
-#ifdef _MSC_VER
-#pragma once
-#endif
-
-#include <windows.h>
-#include <sal.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-//--------------------------------------------------------------------------------------
-// DXGetErrorString
-//--------------------------------------------------------------------------------------
-const WCHAR* WINAPI DXGetErrorStringW( _In_ HRESULT hr );
-
-#define DXGetErrorString DXGetErrorStringW
-
-//--------------------------------------------------------------------------------------
-// DXGetErrorDescription has to be modified to return a copy in a buffer rather than
-// the original static string.
-//--------------------------------------------------------------------------------------
-void WINAPI DXGetErrorDescriptionW( _In_ HRESULT hr, _Out_cap_(count) WCHAR* desc, _In_ size_t count );
-
-#define DXGetErrorDescription DXGetErrorDescriptionW
-
-//--------------------------------------------------------------------------------------
-// DXTrace
-//
-// Desc: Outputs a formatted error message to the debug stream
-//
-// Args: WCHAR* strFile The current file, typically passed in using the
-// __FILEW__ macro.
-// DWORD dwLine The current line number, typically passed in using the
-// __LINE__ macro.
-// HRESULT hr An HRESULT that will be traced to the debug stream.
-// CHAR* strMsg A string that will be traced to the debug stream (may be NULL)
-// BOOL bPopMsgBox If TRUE, then a message box will popup also containing the passed info.
-//
-// Return: The hr that was passed in.
-//--------------------------------------------------------------------------------------
-HRESULT WINAPI DXTraceW( _In_z_ const WCHAR* strFile, _In_ DWORD dwLine, _In_ HRESULT hr, _In_opt_ const WCHAR* strMsg, _In_ bool bPopMsgBox );
-
-#define DXTrace DXTraceW
-
-//--------------------------------------------------------------------------------------
-//
-// Helper macros
-//
-//--------------------------------------------------------------------------------------
-#if defined(DEBUG) || defined(_DEBUG)
-#define DXTRACE_MSG(str) DXTrace( __FILEW__, (DWORD)__LINE__, 0, str, false )
-#define DXTRACE_ERR(str,hr) DXTrace( __FILEW__, (DWORD)__LINE__, hr, str, false )
-#define DXTRACE_ERR_MSGBOX(str,hr) DXTrace( __FILEW__, (DWORD)__LINE__, hr, str, true )
-#else
-#define DXTRACE_MSG(str) (0L)
-#define DXTRACE_ERR(str,hr) (hr)
-#define DXTRACE_ERR_MSGBOX(str,hr) (hr)
-#endif
-
-#ifdef __cplusplus
-}
-#endif //__cplusplus