! (c)2010 Joe Groff bsd license
USING: accessors alien.c-types arrays combinators delegate fry
-kernel quotations sequences words.symbol ;
+kernel quotations sequences words.symbol words ;
IN: alien.enums
TUPLE: enum-c-type base-type members ;
C: <enum-c-type> enum-c-type
+: enum>int ( enum enum-c-type -- int )
+ c-type-unboxer-quot call( x -- y ) ; inline
+
+: int>enum ( int enum-c-type -- enum )
+ c-type-boxer-quot call( x -- y ) ; inline
+
<PRIVATE
: define-enum-members ( member-names -- )