pa_types.h File Reference

Definition of 16 and 32 bit integer types (PaInt16, PaInt32 etc). More...

Go to the source code of this file.

Defines

#define SIZEOF_INT   4
#define SIZEOF_LONG   4
#define PA_VALIDATE_TYPE_SIZES

Detailed Description

Definition of 16 and 32 bit integer types (PaInt16, PaInt32 etc).

SIZEOF_SHORT, SIZEOF_INT and SIZEOF_LONG are set by the configure script when it is used. Otherwise we default to the common 32 bit values, if your platform doesn't use configure, and doesn't use the default values below you will need to explicitly define these symbols in your make file.

A PA_VALIDATE_SIZES macro is provided to assert that the values set in this file are correct.


Define Documentation

#define PA_VALIDATE_TYPE_SIZES
Value:
{ \
        assert( "PortAudio: type sizes are not correct in pa_types.h" && sizeof( PaUint16 ) == 2 ); \
        assert( "PortAudio: type sizes are not correct in pa_types.h" && sizeof( PaInt16 ) == 2 ); \
        assert( "PortAudio: type sizes are not correct in pa_types.h" && sizeof( PaUint32 ) == 4 ); \
        assert( "PortAudio: type sizes are not correct in pa_types.h" && sizeof( PaInt32 ) == 4 ); \
    }

Referenced by Pa_Initialize().

#define SIZEOF_INT   4
#define SIZEOF_LONG   4
Generated on Mon Jul 5 13:32:22 2010 for PortAudio by  doxygen 1.6.3