Home | History | Annotate | Download | only in dae
      1 /*
      2 * Copyright 2006 Sony Computer Entertainment Inc.
      3 *
      4 * Licensed under the MIT Open Source License, for details please see license.txt or the website
      5 * http://www.opensource.org/licenses/mit-license.php
      6 *
      7 */
      8 
      9 #ifndef __DAE_TYPES_H__
     10 #define __DAE_TYPES_H__
     11 
     12 #include <dae/daePlatform.h>
     13 #include <sys/types.h>
     14 #include <stdio.h>
     15 #include <stdlib.h>
     16 #include <assert.h>
     17 #include <wchar.h>
     18 #include <string.h>
     19 
     20 #include <dae/daeError.h>
     21 
     22 #define daeOffsetOf(class, member) \
     23  ((size_t)&(((class*)0x0100)->member) - (size_t)0x0100)
     24 
     25 typedef PLATFORM_INT8		daeChar;
     26 typedef PLATFORM_INT16		daeShort;
     27 typedef PLATFORM_INT32		daeInt;
     28 typedef PLATFORM_INT64		daeLong;
     29 typedef PLATFORM_UINT8		daeUChar;
     30 typedef PLATFORM_UINT16		daeUShort;
     31 typedef PLATFORM_UINT32		daeUInt;
     32 typedef PLATFORM_UINT64		daeULong;
     33 typedef PLATFORM_FLOAT32	daeFloat;
     34 typedef PLATFORM_FLOAT64	daeDouble;
     35 
     36 // base types
     37 
     38 typedef const char*			daeString;
     39 typedef bool				daeBool;
     40 typedef const void*			daeConstRawRef;
     41 typedef void*				daeRawRef;
     42 typedef daeInt				daeEnum;
     43 typedef daeChar*			daeMemoryRef;
     44 
     45 typedef daeChar				daeFixedName[512];
     46 
     47 #include <dae/daeArray.h>
     48 #include <dae/daeArrayTypes.h>
     49 
     50 #endif //__DAE_TYPES_H__
     51