Thread overview
Calling a C function whose name is a D reserved word or keyword
Jul 06, 2020
Cecil Ward
Jul 06, 2020
rikki cattermole
Jul 11, 2020
Cecil Ward
July 06, 2020
Is there a special mechanism in D for handling this problem, where an existing C function might be a name that is reserved in D? Of course I could write a wrapper function in C and call that.
July 07, 2020
https://dlang.org/spec/pragma.html#mangle

pragma(mangle, "body")
extern(C) void body_func();
July 11, 2020
On Monday, 6 July 2020 at 23:40:23 UTC, rikki cattermole wrote:
> https://dlang.org/spec/pragma.html#mangle
>
> pragma(mangle, "body")
> extern(C) void body_func();

Thanks, that’s excellent