소스 검색

Quick.Console: new cout function overload

Unknown 7 년 전
부모
커밋
5acaef87d3
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      Quick.Console.pas

+ 5 - 0
Quick.Console.pas

@@ -114,6 +114,7 @@ type
   procedure cout(const cMsg : Double; cEventType : TLogEventType); overload;
   procedure cout(const cMsg : string; cEventType : TLogEventType); overload;
   procedure cout(const cMsg : string; cColor : TConsoleColor); overload;
+  procedure cout(const cMsg : string; params : array of const; cEventType : TLogEventType); overload;
   procedure coutXY(x,y : Integer; const cMsg : string; cEventType : TLogEventType); overload;
   procedure coutXY(x,y : Integer; const cMsg : string; cColor : TConsoleColor); overload;
   procedure coutXY(x,y : Integer; const cMsg : string; params : array of const; cEventType : TLogEventType); overload;
@@ -229,6 +230,10 @@ begin
   end;
 end;
 
+procedure cout(const cMsg : string; params : array of const; cEventType : TLogEventType);
+begin
+  cout(Format(cMsg,params),cEventType);
+end;
 
 function GetCursorX: Integer; {$IFDEF INLINES}inline;{$ENDIF}
 var