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
worda word
base-typea c-type
memberssequence of word and value pairs


Outputs
None

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

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

Definition