basisdef.h
Go to the documentation of this file.
00001 //======================================================================
00030 //======================================================================
00031 
00032 #ifndef _SDHLIBRARY_BASISDEF_H
00033 #define _SDHLIBRARY_BASISDEF_H
00034 
00035 //----------------------------------------------------------------------
00036 // Project includes
00037 //----------------------------------------------------------------------
00038 
00039 #include <assert.h>
00040 #include "sdhlibrary_settings.h"
00041 
00042 
00043 //----------------------------------------------------------------------
00044 // Typedefs
00045 //----------------------------------------------------------------------
00046 
00047 NAMESPACE_SDH_START
00048 
00049 #if SDH_USE_VCC
00050 // MS visual C++ does not provide stdint.h
00051 typedef __int8           Int8;        
00052 typedef unsigned __int8  UInt8;       
00053 typedef __int16          Int16;       
00054 typedef unsigned __int16 UInt16;      
00055 typedef __int32          Int32;       
00056 typedef unsigned __int32 UInt32;      
00057 #else
00058 // using the typenames from stdint.h should work even on 64-Bit systems...
00059 #include <stdint.h>
00060 typedef int8_t           Int8;        
00061 typedef uint8_t          UInt8;       
00062 typedef int16_t          Int16;       
00063 typedef uint16_t         UInt16;      
00064 typedef int32_t          Int32;       
00065 typedef uint32_t         UInt32;      
00066 #endif
00067 
00068 //----------------------------------------------------------------------
00069 // defines
00070 //----------------------------------------------------------------------
00071 
00073 #define SDH_ASSERT_TYPESIZES()              \
00074     do {                                    \
00075         assert( sizeof( Int8 )   == 1 );    \
00076         assert( sizeof( UInt8 )  == 1 );    \
00077         assert( sizeof( Int16 )  == 2 );    \
00078         assert( sizeof( UInt16 ) == 2 );    \
00079         assert( sizeof( Int32 )  == 4 );    \
00080         assert( sizeof( UInt32 ) == 4 );    \
00081     } while (0)
00082 
00083 
00084 NAMESPACE_SDH_END
00085 
00086 //======================================================================
00087 #endif


schunk_sdh
Author(s): Mathias Luedtke , Florian Weisshardt
autogenerated on Thu Aug 27 2015 15:07:03