[Issue 23812] ImportC: allow adding function attributes to imported C functions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 29 17:51:13 UTC 2024


https://issues.dlang.org/show_bug.cgi?id=23812

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #3 from Dlang Bot <dlang-bot at dlang.rocks> ---
@tim-dlang created dlang/dmd pull request #16820 "Fix bugzilla 23812 - ImportC:
allow adding function attributes to imp…" fixing this issue:

- Fix bugzilla 23812 - ImportC: allow adding function attributes to imported C
functions

  This adds a new pragma for ImportC, which allows to set default storage
  classes. Only `nothrow`, `@nogc` and `pure` are supported for now.
  They can be disabled later with the same pragma using a minus.

  Unknown pragmas are ignored.

  The pragma starts with identifier `D` to avoid conflicts.

https://github.com/dlang/dmd/pull/16820

--


More information about the Digitalmars-d-bugs mailing list