comparison fuhtark_test/include/winapi/dxerr8.h @ 1500:91c8c3b7cbf0

add: futhark tests for generating vulkan api
author sam <sam@basx.dev>
date Wed, 26 Nov 2025 21:36:48 +0700
parents
children
comparison
equal deleted inserted replaced
1499:1f58458b7ef7 1500:91c8c3b7cbf0
1 /*
2 * Copyright (C) 2004 Robert Reif
3 *
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.
8 *
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.
13 *
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
17 */
18
19 #ifndef __WINE_DXERR8_H
20 #define __WINE_DXERR8_H
21
22 #include <_mingw_dxhelper.h>
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif /* defined(__cplusplus) */
27
28 const char* WINAPI DXGetErrorString8A(HRESULT hr);
29 const WCHAR* WINAPI DXGetErrorString8W(HRESULT hr);
30 #define DXGetErrorString8 WINELIB_NAME_AW(DXGetErrorString8)
31
32 const char* WINAPI DXGetErrorDescription8A(HRESULT hr);
33 const WCHAR* WINAPI DXGetErrorDescription8W(HRESULT hr);
34 #define DXGetErrorDescription8 WINELIB_NAME_AW(DXGetErrorDescription8)
35
36 HRESULT WINAPI DXTraceA(const char* strFile, DWORD dwLine, HRESULT hr, const char* strMsg, BOOL bPopMsgBox);
37 HRESULT WINAPI DXTraceW(const char* strFile, DWORD dwLine, HRESULT hr, const WCHAR* strMsg, BOOL bPopMsgBox);
38 #define DXTrace WINELIB_NAME_AW(DXTrace)
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, TRUE)
43 #define DXTRACE_ERR_NOMSGBOX(str,hr) DXTrace(__FILE__, (DWORD)__LINE__, hr, str, FALSE)
44 #else
45 #define DXTRACE_MSG(str) (0L)
46 #define DXTRACE_ERR(str,hr) (hr)
47 #define DXTRACE_ERR_NOMSGBOX(str,hr) (hr)
48 #endif
49
50 #ifdef __cplusplus
51 } /* extern "C" */
52 #endif /* defined(__cplusplus) */
53
54 #endif /* __WINE_DXERR8_H */