[Issue 2168] cast extern enhancement?

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 2 14:20:15 UTC 2024


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

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305 at gmail.com

--- Comment #3 from RazvanN <razvan.nitu1305 at gmail.com> ---
You can just declare the return type of wglGetProcAddress to be of type `int
function()`:

extern(C) int function() func(char*);

And then it will work without needing the cast.

--


More information about the Digitalmars-d-bugs mailing list