chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] define-foreign-enum with a typedef


From: felix winkelmann
Subject: Re: [Chicken-users] define-foreign-enum with a typedef
Date: Thu, 13 Dec 2007 23:59:58 +0100

On Dec 13, 2007 8:36 AM, Shawn Rutledge <address@hidden> wrote:
> On Dec 13, 2007 12:34 AM, felix winkelmann <address@hidden> wrote:
> > "define-foreign-enum" expands into "define-foreign-variable", which
> > are not exported, they can be considered something similar to syntax.
>
> OK.  What's the best way to have them be exported then?
>

Another option (which may also be suboptimal) is to put the enum-definition
in an include file and include it in the compilation units that
require it. Not really
useful for an extension.

Yet another option is to use easyffi, which uses "define-constant"
internally and
which has an "export_constants" declaration.

Or write your own enum-definition macro.


cheers,
felix




reply via email to

[Prev in Thread] Current Thread [Next in Thread]