3 dxerr9.h - Header file for the DirectX 9 Error API
5 Written by Filip Navara <xnavara@volny.cz>
7 This library is distributed in the hope that it will be useful,
8 but WITHOUT ANY WARRANTY; without even the implied warranty of
9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16 #pragma GCC system_header
23 const char *WINAPI
DXGetErrorString9A(HRESULT
);
24 const WCHAR
*WINAPI
DXGetErrorString9W(HRESULT
);
25 const char* WINAPI
DXGetErrorDescription9A(HRESULT
);
26 const WCHAR
* WINAPI
DXGetErrorDescription9W(HRESULT
);
27 HRESULT WINAPI
DXTraceA(const char*,DWORD
,HRESULT
,const char*,BOOL
);
28 HRESULT WINAPI
DXTraceW(const char*,DWORD
,HRESULT
,const WCHAR
*,BOOL
);
31 #define DXGetErrorString9 DXGetErrorString9W
32 #define DXGetErrorDescription9 DXGetErrorDescription9W
33 #define DXTrace DXTraceW
35 #define DXGetErrorString9 DXGetErrorString9A
36 #define DXGetErrorDescription9 DXGetErrorDescription9A
37 #define DXTrace DXTraceA
40 #if defined(DEBUG) || defined(_DEBUG)
41 #define DXTRACE_MSG(str) DXTrace(__FILE__,(DWORD)__LINE__,0,str,FALSE)
42 #define DXTRACE_ERR(str,hr) DXTrace(__FILE__,(DWORD)__LINE__,hr,str,FALSE)
43 #define DXTRACE_ERR_MSGBOX(str,hr) DXTrace(__FILE__,(DWORD)__LINE__,hr,str,TRUE)
45 #define DXTRACE_MSG(str) (0L)
46 #define DXTRACE_ERR(str,hr) (hr)
47 #define DXTRACE_ERR_MSGBOX(str,hr) (hr)