ImportC and nothrow/@nogc?
Steven Schveighoffer
schveiguy at gmail.com
Thu Aug 29 19:50:10 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.
You can't import headers with importC. You have to import C files.
It is already necessary to create shim C files.
So in the shim, you set the attributes, and import the headers
you need.
-Steve
More information about the Digitalmars-d
mailing list