Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to set {$SCOPEDENUMS ON} globally for the whole project?

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?

like image 388
Gad D Lord Avatar asked May 15 '14 20:05

Gad D Lord


1 Answers

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.

like image 162
David Heffernan Avatar answered Sep 28 '22 21:09

David Heffernan