Re: Enum template for cpp binding

2021-02-15 Thread novice3 via Digitalmars-d-learn
On Monday, 15 February 2021 at 14:03:26 UTC, Paul Backus wrote: This will do most of it: Thank you Paul!

Re: Enum template for cpp binding

2021-02-15 Thread Paul Backus via Digitalmars-d-learn
On Monday, 15 February 2021 at 12:37:14 UTC, novice3 wrote: This is reduced example. I am sorry for this type of question, but could please anybody show me template for this boring coding? Is this possible to avoid this manual coding? Show me direction or examples please. This will do most

Enum template for cpp binding

2021-02-15 Thread novice3 via Digitalmars-d-learn
Hello. I want make binding for some CPP api. I have .h file with enums like: /// typedef enum { SOMEAPI_PHASE_A = 91, SOMEAPI_PHASE_B = 92, SOMEAPI_PHASE_C = 93 } someapiPhase; /// It used later in .cpp like: func(SOMEAPI_PHASE_A); I want .d file like this: