Handbook
Glossary
number>enum ( enum-c-type -- quot )
Factor handbook
»
C library interface
»
Passing data between Factor and C
»
Enumeration types
Prev:
enum>number ( enum -- number )
Vocabulary
alien
.
enums
Inputs
enum-c-type
an enum type
Outputs
None
Word description
Convert a number to an enum.
See also
ENUM:
,
define-enum
,
enum>number
Definition
USING:
accessors
alien.c-types
alien.enums.private
;
IN:
alien.enums
MACRO:
number>enum
( enum-c-type -- quot )
lookup-c-type
members>>
enum-boxer
;