[ros-diffs] [greatlrd] 19876: directx header from mingw, writen by our Filip Navara

greatlrd at svn.reactos.com greatlrd at svn.reactos.com
Sun Dec 4 17:42:46 CET 2005


directx header from mingw, writen by our  Filip Navara
Added: trunk/reactos/w32api/include/dxerr8.h
  _____  

Added: trunk/reactos/w32api/include/dxerr8.h
--- trunk/reactos/w32api/include/dxerr8.h	2005-12-04 15:58:45 UTC
(rev 19875)
+++ trunk/reactos/w32api/include/dxerr8.h	2005-12-04 16:42:36 UTC
(rev 19876)
@@ -0,0 +1,53 @@

+/*
+
+	dxerr8.h - Header file for the DirectX 8 Error API
+
+	Written by Filip Navara <xnavara at volny.cz>
+
+	This library is distributed in the hope that it will be useful,
+	but WITHOUT ANY WARRANTY; without even the implied warranty of
+	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+*/
+
+#ifndef _DXERR8_H
+#define _DXERR8_H
+#if __GNUC__ >=3
+#pragma GCC system_header
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+const char *WINAPI DXGetErrorString8A(HRESULT);
+const WCHAR *WINAPI DXGetErrorString8W(HRESULT);
+const char* WINAPI DXGetErrorDescription8A(HRESULT);
+const WCHAR* WINAPI DXGetErrorDescription8W(HRESULT);
+HRESULT WINAPI DXTraceA(const char*,DWORD,HRESULT,const char*,BOOL);
+HRESULT WINAPI DXTraceW(const char*,DWORD,HRESULT,const WCHAR*,BOOL);
+
+#ifdef UNICODE
+#define DXGetErrorString8 DXGetErrorString8W
+#define DXGetErrorDescription8 DXGetErrorDescription8W
+#define DXTrace DXTraceW
+#else
+#define DXGetErrorString8 DXGetErrorString8A
+#define DXGetErrorDescription8 DXGetErrorDescription8A
+#define DXTrace DXTraceA
+#endif 
+
+#if defined(DEBUG) || defined(_DEBUG)
+#define DXTRACE_MSG(str)
DXTrace(__FILE__,(DWORD)__LINE__,0,str,FALSE)
+#define DXTRACE_ERR(str,hr)
DXTrace(__FILE__,(DWORD)__LINE__,hr,str,TRUE)
+#define DXTRACE_ERR_NOMSGBOX(str,hr)
DXTrace(__FILE__,(DWORD)__LINE__,hr,str,FALSE)
+#else
+#define DXTRACE_MSG(str)	(0L)
+#define DXTRACE_ERR(str,hr)	(hr)
+#define DXTRACE_ERR_NOMSGBOX(str,hr)	(hr)
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+#endif
Property changes on: trunk/reactos/w32api/include/dxerr8.h
___________________________________________________________________
Name: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051204/375b0834/attachment.html


More information about the Ros-diffs mailing list