A define statement maps each enumeration type name to a corresponding template instantiation. The type name may now be used to create an VHDL enumeration instance.
Example:
TYPE myenum is (blue, red, green, yellow);is mapped to
#define L3lib_P6mypack_T6myenum integer_type<L3lib_P6mypack_I6myenum>where
L3lib_P6mypack_I6myenum is the type info class of the
VHDL enumeration type myenum defined in package mypack of
library lib.