[DXSDK] Improve dxerr?.h a bit (#1617)

*Use '||', instead of '|', on a '#if'.
*Synchronize some white spaces and blank lines.
This commit is contained in:
Serge Gautherie 2019-06-06 01:50:24 +02:00 committed by Hermès BÉLUSCA - MAÏTO
parent 96a4ab87d4
commit 2f0b265e8d
2 changed files with 4 additions and 11 deletions

View file

@ -1,11 +1,11 @@
#ifndef _DXERR9_H_
#ifndef _DXERR9_H_
#define _DXERR9_H_
#ifdef __cplusplus
extern "C" {
#endif
const char* WINAPI DXGetErrorString9A(HRESULT hr);
const char* WINAPI DXGetErrorDescription9A(HRESULT hr);
HRESULT WINAPI DXTraceA( const char* strFile, DWORD dwLine, HRESULT hr, const char* strMsg, BOOL bPopMsgBox );
@ -24,8 +24,7 @@ HRESULT WINAPI DXTraceW( const char* strFile, DWORD dwLine, HRESULT hr, const WC
#define DXTrace DXTraceA
#endif
#if defined(DEBUG) | defined(_DEBUG)
#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, FALSE )
#define DXTRACE_ERR_MSGBOX(str,hr) DXTrace( __FILE__, (DWORD)__LINE__, hr, str, TRUE )
@ -35,10 +34,8 @@ HRESULT WINAPI DXTraceW( const char* strFile, DWORD dwLine, HRESULT hr, const WC
#define DXTRACE_ERR_MSGBOX(str,hr) (hr)
#endif
#ifdef __cplusplus
}
#endif
#endif