source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/dxerr8.h@ 1180

Last change on this file since 1180 was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 2.1 KB
RevLine 
[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_DXERR8_H
21#define __WINE_DXERR8_H
22
23#ifdef __cplusplus
24extern "C" {
25#endif /* defined(__cplusplus) */
26
27const char* WINAPI DXGetErrorString8A(HRESULT hr);
28const WCHAR* WINAPI DXGetErrorString8W(HRESULT hr);
29#define DXGetErrorString8 __MINGW_NAME_AW(DXGetErrorString8)
30
31const char* WINAPI DXGetErrorDescription8A(HRESULT hr);
32const WCHAR* WINAPI DXGetErrorDescription8W(HRESULT hr);
33#define DXGetErrorDescription8 __MINGW_NAME_AW(DXGetErrorDescription8)
34
35HRESULT WINAPI DXTraceA(const char* strFile, DWORD dwLine, HRESULT hr, const char* strMsg, WINBOOL bPopMsgBox);
36HRESULT 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_DXERR8_H */
Note: See TracBrowser for help on using the repository browser.