summaryrefslogtreecommitdiff
path: root/classattributes/compiler/pdecobj.pas
diff options
context:
space:
mode:
authorjoost <joost@3ad0048d-3df7-0310-abae-a5850022a9f2>2013-10-20 20:49:45 +0000
committerjoost <joost@3ad0048d-3df7-0310-abae-a5850022a9f2>2013-10-20 20:49:45 +0000
commit8e62d6ce143e9136b37ef901a5ef8867a4d5abbb (patch)
tree7f127bf0a5a968d0135c6797e073d1537b175fa0 /classattributes/compiler/pdecobj.pas
parentd70be1f8f94272c76e925821ca5972526cfd3f82 (diff)
downloadfpc-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/pdecobj.pas')
-rw-r--r--classattributes/compiler/pdecobj.pas5
1 files changed, 4 insertions, 1 deletions
diff --git a/classattributes/compiler/pdecobj.pas b/classattributes/compiler/pdecobj.pas
index 2268a3e5e0..f3be881722 100644
--- a/classattributes/compiler/pdecobj.pas
+++ b/classattributes/compiler/pdecobj.pas
@@ -1227,7 +1227,10 @@ implementation
end;
_LECKKLAMMER:
begin
- parse_rttiattributes(current_rttiattributesdef);
+ if m_prefixed_attributes in current_settings.modeswitches then
+ parse_rttiattributes(current_rttiattributesdef)
+ else
+ consume(_ID);
end;
_END :
begin