Add a TriMesh to TriMesh collision demo.
[ode.git] / ode / src / typedefs.h
blobc8164c34f0ffc9ed7e8743494e6cacae30e92abe
1 /*************************************************************************
2 * *
3 * Open Dynamics Engine, Copyright (C) 2001-2003 Russell L. Smith. *
4 * All rights reserved. Email: russ@q12.org Web: www.q12.org *
5 * *
6 * This library is free software; you can redistribute it and/or *
7 * modify it under the terms of EITHER: *
8 * (1) The GNU Lesser General Public License as published by the Free *
9 * Software Foundation; either version 2.1 of the License, or (at *
10 * your option) any later version. The text of the GNU Lesser *
11 * General Public License is included with this library in the *
12 * file LICENSE.TXT. *
13 * (2) The BSD-style license that is included with this library in *
14 * the file LICENSE-BSD.TXT. *
15 * *
16 * This library is distributed in the hope that it will be useful, *
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the files *
19 * LICENSE.TXT and LICENSE-BSD.TXT for more details. *
20 * *
21 *************************************************************************/
23 #ifndef _ODE_TYPEDEFS_H_
24 #define _ODE_TYPEDEFS_H_
26 #include <ode/odeconfig.h>
28 #include "error.h"
32 * Internal typedefs to map public types into more convenient private types
36 typedef dint64 int64;
37 dSASSERT(sizeof(int64) == 8);
39 typedef duint64 uint64;
40 dSASSERT(sizeof(uint64) == 8);
42 typedef dint32 int32;
43 dSASSERT(sizeof(int32) == 4);
45 typedef duint32 uint32;
46 dSASSERT(sizeof(uint32) == 4);
48 typedef dint16 int16;
49 dSASSERT(sizeof(int16) == 2);
51 typedef duint16 uint16;
52 dSASSERT(sizeof(uint16) == 2);
54 typedef dint8 int8;
55 dSASSERT(sizeof(int8) == 1);
57 typedef duint8 uint8;
58 dSASSERT(sizeof(uint8) == 1);
61 typedef dintptr intptr;
62 dSASSERT(sizeof(intptr) == sizeof(void *));
64 typedef duintptr uintptr;
65 dSASSERT(sizeof(uintptr) == sizeof(void *));
67 typedef ddiffint diffint;
68 dSASSERT(sizeof(diffint) == sizeof(void *)); // So far, we choose to not support systems that have accessible memory segment size smaller than the pointer size
70 typedef dsizeint sizeint;
71 dSASSERT(sizeof(sizeint) == sizeof(void *)); // So far, we choose to not support systems that have accessible memory segment size smaller than the pointer size
74 #endif