Re: [cffi-devel] defenum proposal

24 Jan
2006
24 Jan
'06
10:42 p.m.
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
6988
Age (days ago)
6988
Last active (days ago)
0 comments
1 participants
participants (1)
-
Justin Heyes-Jones