Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
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
number
an enum number
enum-c-type
an enum type
enum
the 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
;