Ignore:
Timestamp:
Apr 6, 2012, 9:43:56 AM (13 years ago)
Author:
chronos
Message:
  • Added: Project determines which source file is main program source.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Compiler/USourceCode.pas

    r30 r51  
    380380  end;
    381381
     382  { TProgram }
     383
    382384  TProgram = class
    383385    Device: TDevice;
    384386    Modules: TModuleList;
     387    MainModule: TModule;
     388    procedure Clear;
    385389    constructor Create;
    386390    destructor Destroy; override;
     
    421425
    422426{ TProgram }
     427
     428procedure TProgram.Clear;
     429begin
     430  Modules.Clear;
     431  MainModule := nil;
     432end;
    423433
    424434constructor TProgram.Create;
Note: See TracChangeset for help on using the changeset viewer.