diff options
author | joost <joost@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2013-10-20 20:49:45 +0000 |
---|---|---|
committer | joost <joost@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2013-10-20 20:49:45 +0000 |
commit | 8e62d6ce143e9136b37ef901a5ef8867a4d5abbb (patch) | |
tree | 7f127bf0a5a968d0135c6797e073d1537b175fa0 /classattributes/compiler/pdecl.pas | |
parent | d70be1f8f94272c76e925821ca5972526cfd3f82 (diff) | |
download | fpc-joost.tar.gz |
* Allow rtti-attributes only when the modeswitch prefixedattributes is setjoost
* Set the prefixedattributes by default in mode delphi
git-svn-id: http://svn.freepascal.org/svn/fpc/branches/joost@25838 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'classattributes/compiler/pdecl.pas')
-rw-r--r-- | classattributes/compiler/pdecl.pas | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/classattributes/compiler/pdecl.pas b/classattributes/compiler/pdecl.pas index 7696bb068e..fc0067611e 100644 --- a/classattributes/compiler/pdecl.pas +++ b/classattributes/compiler/pdecl.pas @@ -498,10 +498,11 @@ implementation generictokenbuf:=nil; { class attribute definitions? } - while token=_LECKKLAMMER do - begin - parse_rttiattributes(current_rtticlassattributesdef); - end; + if m_prefixed_attributes in current_settings.modeswitches then + while token=_LECKKLAMMER do + begin + parse_rttiattributes(current_rtticlassattributesdef); + end; { fpc generic declaration? } isgeneric:=not(m_delphi in current_settings.modeswitches) and try_to_consume(_GENERIC); |