fbxsdk_def.h 2.0 KB

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