瀏覽代碼

+ add a Flush method to TExeMap which is useful when debugging internal errors or crashes where the exemap instance has not yet been destroyed

git-svn-id: trunk@43358 -
svenbarth 5 年之前
父節點
當前提交
c6a08cdc6e
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      compiler/ogmap.pas

+ 7 - 0
compiler/ogmap.pas

@@ -40,6 +40,7 @@ interface
        public
          constructor Create(const s:string);
          destructor Destroy;override;
+         procedure Flush;
          procedure Add(const s:string);
          procedure AddHeader(const s:string);
          procedure AddCommonSymbolsHeader;
@@ -111,6 +112,12 @@ implementation
        end;
 
 
+     procedure TExeMap.Flush;
+       begin
+         System.Flush(t);
+       end;
+
+
      procedure TExeMap.Add(const s:string);
        begin
          writeln(t,s);