OPC_IceHook.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. // Should be included by Opcode.h if needed
  2. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  3. // Include Guard
  4. #ifndef __OPC_ICEHOOK_H__
  5. #define __OPC_ICEHOOK_H__
  6. #define ICE_DONT_CHECK_COMPILER_OPTIONS
  7. // From Windows...
  8. typedef int BOOL;
  9. #ifndef FALSE
  10. #define FALSE 0
  11. #endif
  12. #ifndef TRUE
  13. #define TRUE 1
  14. #endif
  15. #include <stdio.h>
  16. #include <stdlib.h>
  17. #include <assert.h>
  18. #include <string.h>
  19. #include <float.h>
  20. #include <math.h>
  21. #ifndef ASSERT
  22. #define ASSERT(exp) {}
  23. #endif
  24. #define ICE_COMPILE_TIME_ASSERT(exp) extern char ICE_Dummy[ (exp) ? 1 : -1 ]
  25. #define Log {}
  26. #define SetIceError(a,b) false
  27. #define EC_OUTOFMEMORY "Out of memory"
  28. extern void OPCODE_NORETURN IceAbort();
  29. #include "Ice/IcePreprocessor.h"
  30. #undef ICECORE_API
  31. #define ICECORE_API OPCODE_API
  32. #include "Ice/IceTypes.h"
  33. #include "Ice/IceFPU.h"
  34. #include "Ice/IceMemoryMacros.h"
  35. namespace IceCore
  36. {
  37. #include "Ice/IceUtils.h"
  38. #include "Ice/IceContainer.h"
  39. #include "Ice/IcePairs.h"
  40. #include "Ice/IceRevisitedRadix.h"
  41. #include "Ice/IceRandom.h"
  42. }
  43. using namespace IceCore;
  44. #define ICEMATHS_API OPCODE_API
  45. namespace IceMaths
  46. {
  47. #include "Ice/IceAxes.h"
  48. #include "Ice/IcePoint.h"
  49. #include "Ice/IceHPoint.h"
  50. #include "Ice/IceMatrix3x3.h"
  51. #include "Ice/IceMatrix4x4.h"
  52. #include "Ice/IcePlane.h"
  53. #include "Ice/IceRay.h"
  54. #include "Ice/IceIndexedTriangle.h"
  55. #include "Ice/IceTriangle.h"
  56. #include "Ice/IceTriList.h"
  57. #include "Ice/IceAABB.h"
  58. #include "Ice/IceOBB.h"
  59. #include "Ice/IceBoundingSphere.h"
  60. #include "Ice/IceSegment.h"
  61. #include "Ice/IceLSS.h"
  62. }
  63. using namespace IceMaths;
  64. #endif // __OPC_ICEHOOK_H__