source: Daodan/MinGW/include/dxerr9.h@ 1127

Last change on this file since 1127 was 1046, checked in by alloc, 8 years ago

Daodan: Added Windows MinGW and build batch file

File size: 1.4 KB
RevLine 
[1046]1/*
2
3 dxerr9.h - Header file for the DirectX 9 Error API
4
5 Written by Filip Navara <xnavara@volny.cz>
6
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.
10
11*/
12
13#ifndef _DXERR9_H
14#define _DXERR9_H
15#if __GNUC__ >=3
16#pragma GCC system_header
17#endif
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23const char *WINAPI DXGetErrorString9A(HRESULT);
24const WCHAR *WINAPI DXGetErrorString9W(HRESULT);
25const char* WINAPI DXGetErrorDescription9A(HRESULT);
26const WCHAR* WINAPI DXGetErrorDescription9W(HRESULT);
27HRESULT WINAPI DXTraceA(const char*,DWORD,HRESULT,const char*,BOOL);
28HRESULT WINAPI DXTraceW(const char*,DWORD,HRESULT,const WCHAR*,BOOL);
29
30#ifdef UNICODE
31#define DXGetErrorString9 DXGetErrorString9W
32#define DXGetErrorDescription9 DXGetErrorDescription9W
33#define DXTrace DXTraceW
34#else
35#define DXGetErrorString9 DXGetErrorString9A
36#define DXGetErrorDescription9 DXGetErrorDescription9A
37#define DXTrace DXTraceA
38#endif
39
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)
44#else
45#define DXTRACE_MSG(str) (0L)
46#define DXTRACE_ERR(str,hr) (hr)
47#define DXTRACE_ERR_MSGBOX(str,hr) (hr)
48#endif
49
50#ifdef __cplusplus
51}
52#endif
53#endif
Note: See TracBrowser for help on using the repository browser.