[Swig-user] enum constants vs. functions returning an enum value

Reed Hedges reed at mobilerobots.com
Mon Aug 14 08:51:35 EDT 2006


Chris Shoemaker wrote:
> However, the wrapper for gncOwnerGetType() returns the enum value
> immediately, not a thunk.  E.g. "(gncOwnerGetType employee)" evaluates
> to 1.
> 
> This means that the return value of the wrapper for the function that
> returns an enum value is not comparable to the enum values.

Doesn't this work? --

(= (GNC-OWNER-EMPLOYEE) (gncOwnerGetType employee))



More information about the gnucash-devel mailing list