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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Sep 14 17:58:09 UTC 2024


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #16820 "Fix bugzilla 23812 - ImportC: allow adding
function attributes to imp…" was merged into master:

- d956dc0ccc458a8506a2776ebc1eb00ef5127685 by Tim Schendekehl:
  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 using `#pragma attribute(pop)`.

  Unknown storage classes are ignored.

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

--


More information about the Digitalmars-d-bugs mailing list