number>enum ( enum-c-type -- quot )
Factor documentation > Factor handbook > C library interface > Passing data between Factor and C > Enumeration types
Prev:enum>number ( enum -- number )


Vocabulary
alien.enums

Inputs and outputs
numberan enum number
enum-c-typean enum type
enumthe corresponding enum word


Word description
Convert a number to an enum.

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

Definition
USING: accessors alien.c-types alien.enums.private macros ;

IN: alien.enums

MACRO: number>enum ( enum-c-type -- quot )
lookup-c-type members>> enum-boxer ;