Imported Upstream version 2.81
[platform/upstream/libbullet.git] / Extras / CDTestFramework / Opcode / OPC_IceHook.h
1 /*
2  *      OPCODE - Optimized Collision Detection
3  * http://www.codercorner.com/Opcode.htm
4  * 
5  * Copyright (c) 2001-2008 Pierre Terdiman,  pierre@codercorner.com
6
7 This software is provided 'as-is', without any express or implied warranty.
8 In no event will the authors be held liable for any damages arising from the use of this software.
9 Permission is granted to anyone to use this software for any purpose, 
10 including commercial applications, and to alter it and redistribute it freely, 
11 subject to the following restrictions:
12
13 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
14 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
15 3. This notice may not be removed or altered from any source distribution.
16 */
17
18 // Should be included by Opcode.h if needed
19
20         #define ICE_DONT_CHECK_COMPILER_OPTIONS
21
22         // From Windows...
23         typedef int                 BOOL;
24         #ifndef FALSE
25         #define FALSE               0
26         #endif
27
28         #ifndef TRUE
29         #define TRUE                1
30         #endif
31
32         #include <stdio.h>
33         #include <stdlib.h>
34         #include <assert.h>
35         #include <string.h>
36         #include <float.h>
37         #include <Math.h>
38
39         #ifndef ASSERT
40                 #define ASSERT(exp)     {}
41         #endif
42         #define ICE_COMPILE_TIME_ASSERT(exp)    extern char ICE_Dummy[ (exp) ? 1 : -1 ]
43
44         #define Log                             {}
45         #define SetIceError             false
46         #define EC_OUTOFMEMORY  "Out of memory"
47
48         #include ".\Ice\IcePreprocessor.h"
49
50         #undef ICECORE_API
51         #define ICECORE_API     OPCODE_API
52
53         #include ".\Ice\IceTypes.h"
54         #include ".\Ice\IceFPU.h"
55         #include ".\Ice\IceMemoryMacros.h"
56
57         namespace Opcode
58         {
59         namespace IceCore
60         {
61                 #include ".\Ice\IceAllocator.h"
62                 #include ".\Ice\IceUtils.h"
63                 #include ".\Ice\IceBitArray.h"
64                 #include ".\Ice\IceContainer.h"
65                 #include ".\Ice\IcePairs.h"
66                 #include ".\Ice\IceRevisitedRadix.h"
67                 #include ".\Ice\IceRandom.h"
68                 #include ".\Ice\IceHashing.h"
69         }
70         using namespace IceCore;
71
72         #define ICEMATHS_API    OPCODE_API
73         namespace IceMaths
74         {
75                 #include ".\Ice\IceAxes.h"
76                 #include ".\Ice\IcePoint.h"
77                 #include ".\Ice\IceHPoint.h"
78                 #include ".\Ice\IceMatrix3x3.h"
79                 #include ".\Ice\IceMatrix4x4.h"
80                 #include ".\Ice\IcePlane.h"
81                 #include ".\Ice\IceRay.h"
82                 #include ".\Ice\IceIndexedTriangle.h"
83                 #include ".\Ice\IceTriangle.h"
84                 #include ".\Ice\IceTriList.h"
85                 #include ".\Ice\IceAABB.h"
86                 #include ".\Ice\IceOBB.h"
87                 #include ".\Ice\IceBoundingSphere.h"
88                 #include ".\Ice\IceSegment.h"
89                 #include ".\Ice\IceLSS.h"
90         }
91         using namespace IceMaths;
92 }