Builder/Builder/Common/plyfile.c
/******************************************************************************
  Verify that all the native types are the sizes we need


******************************************************************************/
Verify that all the native types are the sizes we need
Verify that all the native types are the sizes we need
void check_types()
{
    if ((ply_type_size[PLY_CHAR] != sizeof(char)) ||
	(ply_type_size[PLY_SHORT] != sizeof(short)) ||	
	(ply_type_size[PLY_INT] != sizeof(int)) ||	
	(ply_type_size[PLY_UCHAR] != sizeof(unsigned char)) ||	
	(ply_type_size[PLY_USHORT] != sizeof(unsigned short)) ||	
	(ply_type_size[PLY_UINT] != sizeof(unsigned int)) ||	
	(ply_type_size[PLY_FLOAT] != sizeof(float)) ||	
	(ply_type_size[PLY_DOUBLE] != sizeof(double)))
    {
	fprintf(stderr, "ply: Type sizes do not match built-in types (%d != %d)\n", ply_type_size[PLY_FLOAT], sizeof(float));
	fprintf(stderr, "ply: Exiting...\n");
	exit(1);
    }
    types_checked = 1;
}
void check_types ( ) { if ( ( ply_type_size [ PLY_CHAR ] != sizeof ( char ) ) || ( ply_type_size [ PLY_SHORT ] != sizeof ( short ) ) || ( ply_type_size [ PLY_INT ] != sizeof ( int ) ) || ( ply_type_size [ PLY_UCHAR ] != sizeof ( unsigned char ) ) || ( ply_type_size [ PLY_USHORT ] != sizeof ( unsigned short ) ) || ( ply_type_size [ PLY_UINT ] != sizeof ( unsigned int ) ) || ( ply_type_size [ PLY_FLOAT ] != sizeof ( float ) ) || ( ply_type_size [ PLY_DOUBLE ] != sizeof ( double ) ) ) { fprintf ( stderr , " \n " , ply_type_size [ PLY_FLOAT ] , sizeof ( float ) ) ; fprintf ( stderr , " \n " ) ; exit ( 1 ) ; } types_checked = 1 ; }
Verify that all the native types are the sizes we need
Verify that all the native types are the sizes we need
//(ply_type_size[PLY_FLOAT32] != sizeof(float)) ||	 //fprintf(stderr, "ply: Type sizes do not match built-in types (%d != %d)\n", ply_type_size[PLY_FLOAT32], sizeof(float));