define-enum ( word base-type members -- )
Factor handbook > C library interface > Passing data between Factor and C > Enumeration types

Prev:ENUM:
Next:enum>number ( enum -- number )


Vocabulary
alien.enums

Inputs and outputs
worda word
base-typea c-type
memberssequence of word and value pairs


Word description
Defines an enum. This is the run-time equivalent of ENUM:.

See also
ENUM:, enum>number, number>enum

Definition