VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Macros
DtCommonUtils.h File Reference

Go to the source code of this file.

Macros

#define TYPE_TO_STRING(T)   std::string(#T)
 
#define VAR_NAME_TO_STRING(T)   std::string(#T)
 
#define SAFE_DELETE(p)
 
#define SAFE_DELETE_ARRAY(p)   { if (p) { delete[] (p); (p)=NULL; } }
 
#define SAFE_RELEASE(p)   { if (p) { (p)->Release(); (p)=NULL; } }
 
#define V_RETURN(x)   { hr = (x); if( FAILED(hr) ) { return hr; } }
 
#define UNREFERENCED_VARIABLE(x)   static_cast<void>(x)
 

Detailed Description

Common types.

Common utilities.

Macro Definition Documentation

#define TYPE_TO_STRING (   T)    std::string(#T)
#define VAR_NAME_TO_STRING (   T)    std::string(#T)
#define SAFE_DELETE (   p)
Value:
if (p) \
{ \
delete p; \
p = 0; \
} \
#define SAFE_DELETE_ARRAY (   p)    { if (p) { delete[] (p); (p)=NULL; } }
#define SAFE_RELEASE (   p)    { if (p) { (p)->Release(); (p)=NULL; } }
#define V_RETURN (   x)    { hr = (x); if( FAILED(hr) ) { return hr; } }
#define UNREFERENCED_VARIABLE (   x)    static_cast<void>(x)

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)