Re: Official .defs files



On 15 May 2001 22:11:56 -0700, Karl Nelson wrote:
 
> This does me very little good.  The "value" I need for gtkmm
> is the numerical value.  Having the C name means having to include
> every gtk+ header in the C++ headers.   
> 
> That is I need it to be able to generate
> 
>   struct DirectionType
>   {
>      static const TabForward=0;
>      static const TabBackward=1;
>      static const Up=2;
>      static const Down=3;
>      static const Left=4;
>      static const Right=5;
>   };
> 
> or similar.
> 
> Ie.
>   (value (name *) (c-name *) (c-value *))
> 

Can't you simply get the number from the order they come in the
define-enum? Can we assume that tab-forward will be 0 and so on?



ariel




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]