Skip to content

gmplTypedefStatement

Typedef is a terminal, declaration statement that occurs only in description files authored from IDL— i.e., external COM components. Its purpose is to supply an alternative identifier for a type. Typedefs are not moved forward into the authored code. Rather whenever a type specification is read, if it is a typedef, then the actual type is substituted.

The attributes of the Typedef statement are as follows:

AttributeDescription
IdThis attribute is the identifier of the typedef. It must be unique within the scope of the library
containing it. The identifier is not case-sensitive.
TypeThis attribute is a Type attribute as discussed on the Declaration page. It
specifies the type that will be associated with any component that defines its type using
the identifier of this typedef.

The script errors associated with the Typedef statement are as follows:

ErrorDescription
1055Typedef command missing required id attribute.
1056Unable to store typedef vector: %1d
1057Typedef command missing required type attribute.