Global extern(C) in druntime header files?

Gary Willoughby dev at kalekold.net
Thu Jun 6 00:55:55 PDT 2013


> You are passing a function pointer to a C library, where it 
> will be expected that the function uses the C calling 
> convention. So you have to declare the function as extern(C), 
> otherwise DMD will not compile it as such. That can cause 
> segfaults.

Right ok thanks.


More information about the Digitalmars-d-learn mailing list