1 ! Copyright (C) 2010 Erik Charlebois.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: alien.c-types alien.syntax help.markup help.syntax words ;
8 { "word" word } { "base-type" c-type } { "members" "sequence of word and value pairs" }
10 { $description "Defines an enum. This is the run-time equivalent of " { $link POSTPONE: ENUM: } "." } ;
14 { "enum" "an enum word" }
15 { "number" "the corresponding number value" }
17 { $description "Converts an enum to a number." } ;
21 { "number" "an enum number" } { "enum-c-type" "an enum type" }
22 { "enum" "the corresponding enum word" }
24 { $description "Convert a number to an enum." } ;
26 { POSTPONE: ENUM: define-enum enum>number number>enum } related-words