Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-03

Another conditional defines dialog question

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Juha Manninen
to Graeme Geldenhuys
Graeme Geldenhuys wrote
Why are there two Conditional Defines dialogs in Lazarus IDE? ide/condef.pas ide/CustomDefines.pas

They have different purpose and usage.

Unit condef implements the Source -> Enclose in $IFDEF feature.

Unit CustomDefines helps the user to manage a list of defines to be passed to compiler.
You can open it in Project Options -> Compiler Options -> Other -> Defines ... It is a front-end to Custom options memo, but it keeps a list of unselected defines, too.

Maybe the unit CustomDefines should be renamed to something else, there are properties named CustomDefines.

Juha

Reply by email

Mattias Gaertner
to Juha Manninen
Show quoted text 9 lines
On Fri, Mar 20, 2015 at 10:02 AM, Graeme Geldenhuys wrote: > Why are there two Conditional Defines dialogs in Lazarus IDE? > > ide/condef.pas > ide/CustomDefines.pas [...] Maybe the unit CustomDefines should be renamed to something else, there are properties named CustomDefines.

Maybe both units should be renamed.
The first inserts common IFDEFs.
The second is a dialog for editing -d compiler parameters. (BTW, it misses an abstract in the the header).

Mattias

Reply by email