FreeBSD/sys/contrib/dev/acpica/components/utilities/utdecode.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiUtValidObjectType
 *
 * PARAMETERS:  Type            - Object type to be validated
 *
 * RETURN:      TRUE if valid object type, FALSE otherwise
 *
 * DESCRIPTION: Validate an object type
 *
 ******************************************************************************/
AcpiUtValidObjectType
PARAMETERS:  Type            - Object type to be validated

TRUE if valid object type, FALSE otherwise

Validate an object type
AcpiUtValidObjectType PARAMETERS : Type - Object type to be validated TRUE if valid object type FALSE otherwise Validate an object type
BOOLEAN
AcpiUtValidObjectType (
    ACPI_OBJECT_TYPE        Type)
{
    if (Type > ACPI_TYPE_LOCAL_MAX)
    {
        return (FALSE);
    }
    return (TRUE);
}
BOOLEAN AcpiUtValidObjectType ( ACPI_OBJECT_TYPE Type ) { if ( Type > ACPI_TYPE_LOCAL_MAX ) { return ( FALSE ) ; } return ( TRUE ) ; }
FUNCTION:    AcpiUtValidObjectType
 PARAMETERS:  Type            - Object type to be validated
FUNCTION : AcpiUtValidObjectType PARAMETERS : Type - Object type to be validated
/* Note: Assumes all TYPEs are contiguous (external/local) */