| 1 | /**************************************************************************************** | 
| 2 |   | 
| 3 |    Copyright (C) 2015 Autodesk, Inc. | 
| 4 |    All rights reserved. | 
| 5 |   | 
| 6 |    Use of this software is subject to the terms of the Autodesk license agreement | 
| 7 |    provided at the time of installation or download, or which otherwise accompanies | 
| 8 |    this software in either electronic or hard copy form. | 
| 9 |   | 
| 10 | ****************************************************************************************/ | 
| 11 |  | 
| 12 | /** \file fbxsdk_def.h | 
| 13 |   * FBX SDK environment definition. | 
| 14 |   * | 
| 15 |   * This file is the principal FBX SDK environment definition. It is used at the top of | 
| 16 |   * every header and source file so that every unit is using the same definitions. | 
| 17 |   */ | 
| 18 | #ifndef _FBXSDK_DEFINITION_H_ | 
| 19 | #define _FBXSDK_DEFINITION_H_ | 
| 20 |  | 
| 21 | //--------------------------------------------------------------------------------------- | 
| 22 | //System Includes | 
| 23 | #include <stdlib.h> | 
| 24 | #include <stdarg.h> | 
| 25 | #include <stddef.h> | 
| 26 | #include <stdio.h> | 
| 27 | #include <ctype.h> | 
| 28 | #include <string.h> | 
| 29 | #include <wchar.h> | 
| 30 | #include <locale.h> | 
| 31 | #include <float.h> | 
| 32 | #include <math.h> | 
| 33 | #include <time.h> | 
| 34 |  | 
| 35 | //--------------------------------------------------------------------------------------- | 
| 36 | //Define Version and Namespace | 
| 37 | #include <fbxsdk/fbxsdk_version.h> | 
| 38 |  | 
| 39 | //--------------------------------------------------------------------------------------- | 
| 40 | //Define Architecture | 
| 41 | #include <fbxsdk/core/arch/fbxarch.h> | 
| 42 | #include <fbxsdk/core/arch/fbxtypes.h> | 
| 43 | #include <fbxsdk/core/arch/fbxdebug.h> | 
| 44 | #include <fbxsdk/core/arch/fbxalloc.h> | 
| 45 | #include <fbxsdk/core/arch/fbxnew.h> | 
| 46 | #include <fbxsdk/core/arch/fbxstdcompliant.h> | 
| 47 |  | 
| 48 | //--------------------------------------------------------------------------------------- | 
| 49 | //Useful Macros | 
| 50 | #define FBX_SAFE_DELETE(p)			{FbxDelete(p);(p)=NULL;} | 
| 51 | #define FBX_SAFE_DELETE_ARRAY(a)	{FbxDeleteArray(a);(a)=NULL;} | 
| 52 | #define FBX_SAFE_DESTROY(p)			if(p){(p)->Destroy();(p)=NULL;} | 
| 53 | #define FBX_SAFE_FREE(p)			if(p){FbxFree(p);(p)=NULL;} | 
| 54 |  | 
| 55 | #endif /* _FBXSDK_DEFINITION_H_ */ | 
| 56 |  |