blob: 49ed3b3f43bbdc765b338b13e8d3bf74444bf02e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
//////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) Microsoft Corporation. All Rights Reserved.
//
// File: d3dx11dbg.h
// Content: D3DX11 debugging functions
//
//////////////////////////////////////////////////////////////////////////////
#ifndef __D3DX11DBG_H__
#define __D3DX11DBG_H__
#ifndef _PREFAST_
#pragma warning( disable: 4068 )
#endif
#include <strsafe.h>
#include <new>
#undef NEW
#undef DELETE
#define NEW new (std::nothrow)
#define NEW_PROTO_ARGS size_t s, const std::nothrow_t& t
typedef signed char INT8;
typedef signed short INT16;
typedef unsigned char UINT8;
typedef unsigned short UINT16;
//----------------------------------------------------------------------------
// DPF
//----------------------------------------------------------------------------
#ifdef FXDPF
void cdecl D3DXDebugPrintf(UINT lvl, LPCSTR szFormat, ...);
#define DPF D3DXDebugPrintf
#else // !FXDPF
#pragma warning(disable:4002)
#define DPF() 0
#endif // !FXDPF
//----------------------------------------------------------------------------
// D3DXASSERT
//----------------------------------------------------------------------------
#if _DEBUG
int WINAPI D3DXDebugAssert(LPCSTR szFile, int nLine, LPCSTR szCondition);
#define D3DXASSERT(condition) \
do { if(!(condition)) D3DXDebugAssert(__FILE__, __LINE__, #condition); } while(0)
#else // !_DEBUG
#define D3DXASSERT(condition) 0
#endif // !_DEBUG
#endif // __D3DX11DBG_H__
|