Formatting fix
[reactos.git] / include / dxsdk / dxerr9.h
1 #ifndef _DXERR9_H_
2 #define _DXERR9_H_
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8
9 const char* WINAPI DXGetErrorString9A(HRESULT hr);
10 const char* WINAPI DXGetErrorDescription9A(HRESULT hr);
11 HRESULT WINAPI DXTraceA( const char* strFile, DWORD dwLine, HRESULT hr, const char* strMsg, BOOL bPopMsgBox );
12
13 const WCHAR* WINAPI DXGetErrorString9W(HRESULT hr);
14 const WCHAR* WINAPI DXGetErrorDescription9W(HRESULT hr);
15 HRESULT WINAPI DXTraceW( const char* strFile, DWORD dwLine, HRESULT hr, const WCHAR* strMsg, BOOL bPopMsgBox );
16
17 #ifdef UNICODE
18 #define DXGetErrorString9 DXGetErrorString9W
19 #define DXGetErrorDescription9 DXGetErrorDescription9W
20 #define DXTrace DXTraceW
21 #else
22 #define DXGetErrorString9 DXGetErrorString9A
23 #define DXGetErrorDescription9 DXGetErrorDescription9A
24 #define DXTrace DXTraceA
25 #endif
26
27
28 #if defined(DEBUG) | defined(_DEBUG)
29 #define DXTRACE_MSG(str) DXTrace( __FILE__, (DWORD)__LINE__, 0, str, FALSE )
30 #define DXTRACE_ERR(str,hr) DXTrace( __FILE__, (DWORD)__LINE__, hr, str, FALSE )
31 #define DXTRACE_ERR_MSGBOX(str,hr) DXTrace( __FILE__, (DWORD)__LINE__, hr, str, TRUE )
32 #else
33 #define DXTRACE_MSG(str) (0L)
34 #define DXTRACE_ERR(str,hr) (hr)
35 #define DXTRACE_ERR_MSGBOX(str,hr) (hr)
36 #endif
37
38
39 #ifdef __cplusplus
40 }
41 #endif
42
43 #endif
44