fbxsdk/fbxsdk_def.h Source File
 
 
 
fbxsdk/fbxsdk_def.h
Go to the documentation of this file.
00001 /****************************************************************************************
00002  
00003    Copyright (C) 2013 Autodesk, Inc.
00004    All rights reserved.
00005  
00006    Use of this software is subject to the terms of the Autodesk license agreement
00007    provided at the time of installation or download, or which otherwise accompanies
00008    this software in either electronic or hard copy form.
00009  
00010 ****************************************************************************************/
00011 
00018 #ifndef _FBXSDK_DEFINITION_H_
00019 #define _FBXSDK_DEFINITION_H_
00020 
00021 //---------------------------------------------------------------------------------------
00022 //System Includes
00023 #include <stdlib.h>
00024 #include <stdarg.h>
00025 #include <stddef.h>
00026 #include <stdio.h>
00027 #include <ctype.h>
00028 #include <string.h>
00029 #include <wchar.h>
00030 #include <locale.h>
00031 #include <float.h>
00032 #include <math.h>
00033 #include <time.h>
00034 
00035 //---------------------------------------------------------------------------------------
00036 //Define Version and Namespace
00037 #include <fbxsdk/fbxsdk_version.h>
00038 
00039 //---------------------------------------------------------------------------------------
00040 //Define Architecture
00041 #include <fbxsdk/core/arch/fbxarch.h>
00042 #include <fbxsdk/core/arch/fbxtypes.h>
00043 #include <fbxsdk/core/arch/fbxdebug.h>
00044 #include <fbxsdk/core/arch/fbxalloc.h>
00045 #include <fbxsdk/core/arch/fbxnew.h>
00046 #include <fbxsdk/core/arch/fbxstdcompliant.h>
00047 
00048 //---------------------------------------------------------------------------------------
00049 //Useful Macros
00050 #define FBX_SAFE_DELETE(p)                      {FbxDelete(p);(p)=NULL;}
00051 #define FBX_SAFE_DELETE_ARRAY(a)        {FbxDeleteArray(a);(a)=NULL;}
00052 #define FBX_SAFE_DESTROY(p)                     if(p){(p)->Destroy();(p)=NULL;}
00053 #define FBX_SAFE_FREE(p)                        if(p){FbxFree(p);(p)=NULL;}
00054 #define FBX_UNUSED(p)               (p)
00055 
00056 #endif /* _FBXSDK_DEFINITION_H_ */