ImportC and nothrow/@nogc?

Tim tim.dlang at t-online.de
Thu Aug 29 19:36:51 UTC 2024


On Thursday, 29 August 2024 at 19:32:06 UTC, Stefan Koch wrote:
> That requires modification of the C header.
> maybe using the attribute on the import is a better idea.
> Perhaps it is reasonable to have both, but I can imagine people 
> not wanting to change their headers.

A modification of the header is not needed. It is enough to 
create a wrapper C file, which uses the pragma and includes the 
real header.


More information about the Digitalmars-d mailing list