VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/dxerr8.h@ 53201

最後變更 在這個檔案從53201是 53201,由 vboxsync 提交於 10 年 前

Devices/Main: vmsvga updates

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 2.0 KB
 
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#ifdef __cplusplus
23extern "C" {
24#endif /* defined(__cplusplus) */
25
26const char* WINAPI DXGetErrorString8A(HRESULT hr);
27const WCHAR* WINAPI DXGetErrorString8W(HRESULT hr);
28#define DXGetErrorString8 WINELIB_NAME_AW(DXGetErrorString8)
29
30const char* WINAPI DXGetErrorDescription8A(HRESULT hr);
31const WCHAR* WINAPI DXGetErrorDescription8W(HRESULT hr);
32#define DXGetErrorDescription8 WINELIB_NAME_AW(DXGetErrorDescription8)
33
34HRESULT WINAPI DXTraceA(const char* strFile, DWORD dwLine, HRESULT hr, const char* strMsg, BOOL bPopMsgBox);
35HRESULT WINAPI DXTraceW(const char* strFile, DWORD dwLine, HRESULT hr, const WCHAR* strMsg, BOOL bPopMsgBox);
36#define DXTrace WINELIB_NAME_AW(DXTrace)
37
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
47
48#ifdef __cplusplus
49} /* extern "C" */
50#endif /* defined(__cplusplus) */
51
52#endif /* __WINE_DXERR8_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette