RomanYankovsky / DelphiAST

Abstract syntax tree builder for Delphi
Mozilla Public License 2.0
272 stars 117 forks source link

generalized adding VER defines depending on COMPILERVERSION #286

Closed UweRaabe closed 5 years ago

UweRaabe commented 5 years ago

I replaced the AddDefine('VERxxx') calls with a generalized version that uses the current value of COMPILERVERSION. That way the code automatically adapts to new Delphi versions.

I noticed that although the SimpleParser.inc was adjusted to 10.3 Rio, the InitDefinesDefinedByCompiler missed that part. With the above change these additions are no longer necessary.