I would like to enforce
{$SCOPEDENUMS ON}
on all of the units within a project.
Currently I add this to every unit immediately after the unit declaration:
unit unt_WotcSearch;
{$SCOPEDENUMS ON}
...
Is there a way I can set this globally (for example in the *.dpr file or project settings) so would not need to add {$SCOPEDENUMS ON} to hundreds of units?
There is no compiler parameter, and thus no project option, to control this directive. Which means that you have to set it locally in each unit.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With