Changeset 74 for trunk/Compiler/UCompilerAPI.pas
- Timestamp:
- Jan 18, 2018, 11:54:13 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Compiler/UCompilerAPI.pas
r73 r74 15 15 TCompilerAPI = class(TAPI) 16 16 Compiler: TObject; //TCompiler; 17 procedure RegisterTarget(AClass: TTargetClass); 18 procedure UnregisterTarget(AClass: TTargetClass); 17 19 procedure RegisterConvertor(AClass: TConvertorClass); 18 20 procedure UnregisterConvertor(AClass: TConvertorClass); … … 30 32 31 33 { TCompilerAPI } 34 35 procedure TCompilerAPI.RegisterTarget(AClass: TTargetClass); 36 begin 37 TCompiler(Compiler).Targets.Add(AClass.Create); 38 end; 39 40 procedure TCompilerAPI.UnregisterTarget(AClass: TTargetClass); 41 begin 42 TCompiler(Compiler).Targets.Remove(TObject(AClass)); 43 end; 32 44 33 45 procedure TCompilerAPI.RegisterConvertor(AClass: TConvertorClass);
Note:
See TracChangeset
for help on using the changeset viewer.