[Vm-dev] extern function with definition

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Sat Jan 5 10:54:13 UTC 2019


https://jameshfisher.com/2017/08/28/c-extern-function.html

Le sam. 5 janv. 2019 à 08:39, Ben Coman <btc at openinworld.com> a écrit :

>
>
> Here is something I don't comprehend, a function declared extern but also
> with its definition provided.  Is there anything strange about that
> arrangement?
>
> extern int sqAskSecurityYesNoQuestion(const char *question)
> {
>     return MessageBoxA(stWindow, question, "Squeak Security Alert",
> MB_YESNO | MB_ICONSTOP) == IDYES;
> }
>
>
> https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/1d97d795/platforms/win32/vm/sqWin32Window.c#L200
>
> cheers -ben
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20190105/f5c34e33/attachment.html>


More information about the Vm-dev mailing list