VR-Forces 5.0.1 Developer's Guide
Home
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvGraphicsUtils
DtCommonUtils.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2017 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
#pragma once
10
11
#include <string>
12
13
#pragma warning( push )
14
#pragma warning( disable : 4005 )
15
16
17
#define TYPE_TO_STRING(T) std::string(#T)
18
19
#define VAR_NAME_TO_STRING(T) std::string(#T)
20
21
#define SAFE_DELETE(p) if (p) \
22
{ \
23
delete p; \
24
p = 0; \
25
} \
26
27
#define SAFE_DELETE_ARRAY(p) { if (p) { delete[] (p); (p)=NULL; } }
28
29
#define SAFE_RELEASE(p) { if (p) { (p)->Release(); (p)=NULL; } }
30
31
#define V_RETURN(x) { hr = (x); if( FAILED(hr) ) { return hr; } }
32
33
#define UNREFERENCED_VARIABLE(x) static_cast<void>(x)
34
35
#pragma warning ( pop )
Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (
www.mak.com
)