ソースを参照

* Writeln hook is reference to procedure

Michaël Van Canneyt 2 年 前
コミット
2a663b0d83
1 ファイル変更1 行追加1 行削除
  1. 1 1
      packages/rtl/system.pas

+ 1 - 1
packages/rtl/system.pas

@@ -435,7 +435,7 @@ procedure Write; varargs; // ToDo: should be compiler built-in function
 procedure Writeln; varargs; // ToDo: should be compiler built-in function
 
 Type
-  TConsoleHandler = Procedure (S : JSValue; NewLine : Boolean);
+  TConsoleHandler = Reference to Procedure (S : JSValue; NewLine : Boolean);
 Function SetWriteCallBack(H : TConsoleHandler) : TConsoleHandler;
 
 function Assigned(const V: JSValue): boolean; assembler; overload;