3 dxerr8.h - Header file for the DirectX 8 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
DXGetErrorString8A(HRESULT
);
24 const WCHAR
*WINAPI
DXGetErrorString8W(HRESULT
);
25 const char* WINAPI
DXGetErrorDescription8A(HRESULT
);
26 const WCHAR
* WINAPI
DXGetErrorDescription8W(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 DXGetErrorString8 DXGetErrorString8W
32 #define DXGetErrorDescription8 DXGetErrorDescription8W
33 #define DXTrace DXTraceW
35 #define DXGetErrorString8 DXGetErrorString8A
36 #define DXGetErrorDescription8 DXGetErrorDescription8A
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,TRUE)
43 #define DXTRACE_ERR_NOMSGBOX(str,hr) DXTrace(__FILE__,(DWORD)__LINE__,hr,str,FALSE)
45 #define DXTRACE_MSG(str) (0L)
46 #define DXTRACE_ERR(str,hr) (hr)
47 #define DXTRACE_ERR_NOMSGBOX(str,hr) (hr)