> Because if OS_HAS_DEFAULT_BROWSER = false then the compiler will optimise the 
> if call away (as it
>  can never actually execute) and the "Exit" can never be reached.

Ah, now I see.

>  You would be just as effective using
>
>  {$IFDEF WINDOWS}
>    Exit;
>  {$ENDIF}
>
Yep.

Thanks for the explanation!

Bart
_______________________________________________
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to