Synopsis
int  OMobj_is_type_of(
                OMobj_id  object,
                OMtype_id  type   );
Description
OMobj_is_type_of determines whether object 's primitive type is type .
Arguments
object
The id of an object.
type
The id of a type.
The include file <avs/om_type.h> defines the type variables you can specify for type , including the following common ones:
 OM_type_byte
 OM_type_char
 OM_type_cmethod
 OM_type_double
 OM_type_float
 OM_type_group
 OM_type_ilink
 OM_type_imlink
 OM_type_int
 OM_type_macro
 OM_type_method
 OM_type_olink
 OM_type_omlink
 OM_type_prim
 OM_type_ptr
 OM_type_short
 OM_type_string
Alternatively, you can use the routine OMstr_to_type to return the type id corresponding to the type's string name.
Returned value
1 if the object's primitive type is type ; 0 if not; or -1 on an error.
See also