Calling C functions
Jacob Carlborg
doob at me.com
Fri Jun 26 17:15:06 UTC 2020
On 2020-06-26 18:54, Denis wrote:
> OK, now this makes sense.
>
> I tested calling the same callback function directly from D: it compiled
> and worked correctly. So at least prefixing the callback function with
> `extern(C)` doesn't prevent the rest of the D program from calling it too.
No, of course not. How would you otherwise call your `cfunc` function
from your original example ;)
--
/Jacob Carlborg
More information about the Digitalmars-d-learn
mailing list