[1166] | 1 | #include <_mingw_unicode.h>
|
---|
| 2 | /*
|
---|
| 3 | * Copyright (C) 2004 Robert Reif
|
---|
| 4 | *
|
---|
| 5 | * This library is free software; you can redistribute it and/or
|
---|
| 6 | * modify it under the terms of the GNU Lesser General Public
|
---|
| 7 | * License as published by the Free Software Foundation; either
|
---|
| 8 | * version 2.1 of the License, or (at your option) any later version.
|
---|
| 9 | *
|
---|
| 10 | * This library is distributed in the hope that it will be useful,
|
---|
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
| 13 | * Lesser General Public License for more details.
|
---|
| 14 | *
|
---|
| 15 | * You should have received a copy of the GNU Lesser General Public
|
---|
| 16 | * License along with this library; if not, write to the Free Software
|
---|
| 17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
| 18 | */
|
---|
| 19 |
|
---|
| 20 | #ifndef __WINE_DXERR9_H
|
---|
| 21 | #define __WINE_DXERR9_H
|
---|
| 22 |
|
---|
| 23 | #ifdef __cplusplus
|
---|
| 24 | extern "C" {
|
---|
| 25 | #endif /* defined(__cplusplus) */
|
---|
| 26 |
|
---|
| 27 | const char* WINAPI DXGetErrorString9A(HRESULT hr);
|
---|
| 28 | const WCHAR* WINAPI DXGetErrorString9W(HRESULT hr);
|
---|
| 29 | #define DXGetErrorString9 __MINGW_NAME_AW(DXGetErrorString9)
|
---|
| 30 |
|
---|
| 31 | const char* WINAPI DXGetErrorDescription9A(HRESULT hr);
|
---|
| 32 | const WCHAR* WINAPI DXGetErrorDescription9W(HRESULT hr);
|
---|
| 33 | #define DXGetErrorDescription9 __MINGW_NAME_AW(DXGetErrorDescription9)
|
---|
| 34 |
|
---|
| 35 | HRESULT WINAPI DXTraceA(const char* strFile, DWORD dwLine, HRESULT hr, const char* strMsg, WINBOOL bPopMsgBox);
|
---|
| 36 | HRESULT WINAPI DXTraceW(const char* strFile, DWORD dwLine, HRESULT hr, const WCHAR* strMsg, WINBOOL bPopMsgBox);
|
---|
| 37 | #define DXTrace __MINGW_NAME_AW(DXTrace)
|
---|
| 38 |
|
---|
| 39 | #if defined(DEBUG) || defined(_DEBUG)
|
---|
| 40 | #define DXTRACE_MSG(str) DXTrace(__FILE__, (DWORD)__LINE__, 0, str, FALSE)
|
---|
| 41 | #define DXTRACE_ERR(str,hr) DXTrace(__FILE__, (DWORD)__LINE__, hr, str, TRUE)
|
---|
| 42 | #define DXTRACE_ERR_NOMSGBOX(str,hr) DXTrace(__FILE__, (DWORD)__LINE__, hr, str, FALSE)
|
---|
| 43 | #else
|
---|
| 44 | #define DXTRACE_MSG(str) __MSABI_LONG(0)
|
---|
| 45 | #define DXTRACE_ERR(str,hr) (hr)
|
---|
| 46 | #define DXTRACE_ERR_NOMSGBOX(str,hr) (hr)
|
---|
| 47 | #endif
|
---|
| 48 |
|
---|
| 49 | #ifdef __cplusplus
|
---|
| 50 | } /* extern "C" */
|
---|
| 51 | #endif /* defined(__cplusplus) */
|
---|
| 52 |
|
---|
| 53 | #endif /* __WINE_DXERR9_H */
|
---|