Ignore:
Timestamp:
Jan 18, 2018, 11:54:13 PM (7 years ago)
Author:
chronos
Message:
  • Fixed: Build under Lazarus 1.8.0.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Compiler/UCompilerAPI.pas

    r73 r74  
    1515  TCompilerAPI = class(TAPI)
    1616    Compiler: TObject; //TCompiler;
     17    procedure RegisterTarget(AClass: TTargetClass);
     18    procedure UnregisterTarget(AClass: TTargetClass);
    1719    procedure RegisterConvertor(AClass: TConvertorClass);
    1820    procedure UnregisterConvertor(AClass: TConvertorClass);
     
    3032
    3133{ TCompilerAPI }
     34
     35procedure TCompilerAPI.RegisterTarget(AClass: TTargetClass);
     36begin
     37  TCompiler(Compiler).Targets.Add(AClass.Create);
     38end;
     39
     40procedure TCompilerAPI.UnregisterTarget(AClass: TTargetClass);
     41begin
     42  TCompiler(Compiler).Targets.Remove(TObject(AClass));
     43end;
    3244
    3345procedure TCompilerAPI.RegisterConvertor(AClass: TConvertorClass);
Note: See TracChangeset for help on using the changeset viewer.