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