[cffi-devel] defenum proposal
Justin Heyes-Jones
justinhj at gmail.com
Tue Jan 24 22:42:36 UTC 2006
This may be a repost as I got a bounce...
The problem I am looking at is that SDL uses un-named enums quite a lot. In
addition it does arithmetic on them to create other enums...
enum
{
a_value,
another_value,
}
then it does
#define MAKE_MASK (n) (1<<n)
enum
{
MAKE_MASK(a_value),
MAKE_MASK(another_value)
}
In order to do this I can define a lisp function in my swig interface which
does the same thing, but for that to work you need someway of getting to the
value of the first enums.
Justin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/cffi-devel/attachments/20060124/f5af4da7/attachment.html>
More information about the cffi-devel
mailing list