extern(C) function literals for stubs

bearophile bearophileHUGS at lycos.com
Wed Jan 22 09:52:03 PST 2014


Marco Leise:

> Can I define them somehow? The use case is defining extern C
> functions that contain code to load the real thing from a
> library.
>
>   nothrow extern(C) void function(int) someFunc = ???

Perhaps you want:

extern(C) nothrow void someFunc(int someArg);

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list