On Wednesday, 11 April 2018 at 06:24:38 UTC, Jacob Carlborg wrote:
On Monday, 9 April 2018 at 11:03:48 UTC, Atila Neves wrote:
Here's my blog post about my project that allows directly
#including C headers in D*
How do you deal with macros containing invalid D code, i.e.
`#define foo(T) sizeof(T)`?
I did the best I could having seen some macros. It's likely there
are cases I've missed, or that maybe the translation in the link
above doesn't work even for what it's supposed to be doing (I
have no confidence about catching all the C casts for instance).
If there are other cases, I'll fix them as they're encountered.
It's possible some of them can't be fixed and the user will have
to work around them. Right now I have a feeling it will probably
be ok. Time will tell (assuming I have users!).