pragma mangle on extern(C) in function body
Sebastiaan Koppe
mail at skoppe.eu
Wed Jan 16 19:47:20 UTC 2019
On Wednesday, 16 January 2019 at 19:41:04 UTC, Sebastiaan Koppe
wrote:
> While it is perfectly ok to define an extern(C) function in a
> function method, I can't seem to get pragma(mangle, "...") on
> it to work.
>
> ---
> pragma(mangle, "Foo") // Ok
> extern(C) void foo();
>
> void main() {
> pragma(mangle, "Bar") // Error....
> extern(C) void bar();
> }
> ---
>
> Any idea why?
See also:
https://issues.dlang.org/show_bug.cgi?id=15843
https://issues.dlang.org/show_bug.cgi?id=17638
https://issues.dlang.org/show_bug.cgi?id=19149
More information about the Digitalmars-d-learn
mailing list