ImportC and #include files
bachmeier
no at spam.net
Mon May 8 15:57:01 UTC 2023
On Monday, 8 May 2023 at 15:50:09 UTC, jmh530 wrote:
> On Monday, 8 May 2023 at 15:34:32 UTC, jmh530 wrote:
>> [snip]
>> I was assuming that importC would re-write that to an enum
>> that I could use directly in the D file, but the spec says
>> that it doesn't support all uses of metaprogramming with
>> these. You think that's what I'm running into?
>
> Hmm, I'm not sure how much sense that makes since I'm able to
> use it in the .c file...
To my knowledge, you're only able to use them in .c files. .d
files aren't run through the preprocessor and I don't know of any
way to access a C macro from D...but maybe I'm wrong. I've been
using core.stdc.
More information about the Digitalmars-d
mailing list