Browse Source

* Apply RTTI directive status to symbol

Ryan Joseph 2 năm trước cách đây
mục cha
commit
2005e3c094
2 tập tin đã thay đổi với 6 bổ sung1 xóa
  1. 3 0
      compiler/pdecobj.pas
  2. 3 1
      compiler/ptype.pas

+ 3 - 0
compiler/pdecobj.pas

@@ -1668,6 +1668,9 @@ implementation
               end
               end
             else
             else
               olddef:=nil;
               olddef:=nil;
+              
+            { apply $RTTI directive to current object }
+            current_structdef.apply_rtti_directive(current_module.rtti_directive);
 
 
             { parse and insert object members }
             { parse and insert object members }
             parse_object_members;
             parse_object_members;

+ 3 - 1
compiler/ptype.pas

@@ -1051,7 +1051,9 @@ implementation
          { in non-Delphi modes we need a strict private symbol without type
          { in non-Delphi modes we need a strict private symbol without type
            count and type parameters in the name to simply resolving }
            count and type parameters in the name to simply resolving }
          maybe_insert_generic_rename_symbol(n,genericlist);
          maybe_insert_generic_rename_symbol(n,genericlist);
-
+         { apply $RTTI directive to current object }
+         current_structdef.apply_rtti_directive(current_module.rtti_directive);
+         
          if m_advanced_records in current_settings.modeswitches then
          if m_advanced_records in current_settings.modeswitches then
            begin
            begin
              parse_record_members(recsym);
              parse_record_members(recsym);