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