
3 Mar
2008
3 Mar
'08
2:17 a.m.
"Manuel" == Manuel M T Chakravarty
writes:
Hi Manuel, Thank you for reply. Manuel> I'd recommend to use inline C in the .chs file, where you define Manuel> suitable enum with something like Manuel> enum SE_ENUM { SE_ENUM_SUN = SE_SUN, <and so on> Manuel> } Manuel> and then let c2hs marshal SE_ENUM. I was looking at examples and came up with the same solution: #c enum PlanetNumbers { SeSun = SE_SUN, ... }; #endc {#enum PlanetNumbers {}#} It seems as very good workaround in the absence of "enum define" hooks. Thank you for c2hs. I'm happy to use it... Sincerely, Gour -- Gour | Zagreb, Croatia | GPG key: C6E7162D ----------------------------------------------------------------