Is importC ready?

WebFreak001 d.forum at webfreak.org
Wed Nov 10 15:42:52 UTC 2021


On Tuesday, 9 November 2021 at 19:04:04 UTC, Dave P. wrote:
> On Tuesday, 9 November 2021 at 18:45:04 UTC, bachmeier wrote:
>> [...]
>
> ImportC understands `restrict`, it just doesn’t understand 
> non-standard keywords. See 
> [this](https://dlang.org/spec/importc.html#wrapping).
>
> That example is incomplete, but you can  `#define __restrict 
> restrict`, `#define __asm__ asm`, etc.
>
> I agree that the error messages suck.

https://dlang.org/spec/importc.html#restrict

> The restrict type-qualifier (C11 6.7.3) is ignored


More information about the Digitalmars-d mailing list