Is importC ready?

Walter Bright newshound2 at digitalmars.com
Thu Nov 11 02:32:21 UTC 2021


On 11/9/2021 8:41 AM, bachmeier wrote:
> I tried to compile a simple C file this morning, containing

The things that tripped are C extensions, not C11. Especially the errors about 
`__extension__` :-/

Anyhow, `restrict` works. You can do things like:

   #define __restrict restrict

or even:

   #define __restrict

before the #include. (ImportC just ignores the `restrict` keyword, which is 
Standard compliant behavior.)

Over time, we'll probably add support for extensions. But for the moment, it's 
for C11 code.


More information about the Digitalmars-d mailing list