moai/src/moaicore/moaicore.cpp
//----------------------------------------------------------------//
// TODO: this should be part of the unit tests
this should be part of the unit tests
this should be part of the unit tests
static void _typeCheck () {
	assert ( sizeof ( cc8 )	== 1 );
	assert ( sizeof ( u8 )	== 1 );
	assert ( sizeof ( u16 )	== 2 );
	assert ( sizeof ( u32 )	== 4 );
	assert ( sizeof ( u64 )	== 8 );
	assert ( sizeof ( s8 )	== 1 );
	assert ( sizeof ( s16 )	== 2 );
	assert ( sizeof ( s32 )	== 4 );
	assert ( sizeof ( s64 )	== 8 );
}
static void _typeCheck ( ) { assert ( sizeof ( cc8 ) == 1 ) ; assert ( sizeof ( u8 ) == 1 ) ; assert ( sizeof ( u16 ) == 2 ) ; assert ( sizeof ( u32 ) == 4 ) ; assert ( sizeof ( u64 ) == 8 ) ; assert ( sizeof ( s8 ) == 1 ) ; assert ( sizeof ( s16 ) == 2 ) ; assert ( sizeof ( s32 ) == 4 ) ; assert ( sizeof ( s64 ) == 8 ) ; }
TODO: this should be part of the unit tests
TODO : this should be part of the unit tests
// make sure our fixed size typedefs are what we think // they are on the current platform/compiler