[Vm-dev] extern function with definition

Ben Coman btc at openinworld.com
Sat Jan 5 11:19:16 UTC 2019


got it, thx Nicolas.

On Sat, 5 Jan 2019 at 18:54, Nicolas Cellier <
nicolas.cellier.aka.nice at gmail.com> wrote:

>
> 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/06fea793/attachment.html>


More information about the Vm-dev mailing list