I'm using SIP version 5.4.0 and have no trouble translating a struct in c++ for python3.8.
When I want to translate a union sip-install gives me a syntax error.
Any ideas?
Thank you for an answer.
Johnny
I'm using SIP version 5.4.0 and have no trouble translating a struct in c++ for python3.8.
When I want to translate a union sip-install gives me a syntax error.
Any ideas?
Thank you for an answer.
Johnny
Copyright © 2021 Jogjafile Inc.
The Trick is to wrap it in a struct and use %GetCode and %SetCode for each union element. The following example should make things clear:
The following header file:
is translated with this SIP file:
This solution is not my achievement, but I don't know if I can name names. Thank you very much!
Johnny Walker