Explorar el Código

[template] updated

Exilon hace 5 años
padre
commit
064b66c2fc
Se han modificado 1 ficheros con 6 adiciones y 2 borrados
  1. 6 2
      Quick.Template.pas

+ 6 - 2
Quick.Template.pas

@@ -7,7 +7,7 @@
   Author      : Kike Pérez
   Author      : Kike Pérez
   Version     : 2.0
   Version     : 2.0
   Created     : 01/04/2020
   Created     : 01/04/2020
-  Modified    : 28/06/2020
+  Modified    : 30/06/2020
 
 
   This file is part of QuickLib: https://github.com/exilon/QuickLib
   This file is part of QuickLib: https://github.com/exilon/QuickLib
 
 
@@ -39,8 +39,12 @@ uses
   Quick.Commons;
   Quick.Commons;
 
 
 type
 type
+  {$IFNDEF FPC}
+  TTokenFunc = reference to function(const aToken : string) : string;
+  {$ELSE}
   TTokenFunc = function(const aToken : string) : string of object;
   TTokenFunc = function(const aToken : string) : string of object;
-  
+  {$ENDIF}
+
   TStringTemplate = class
   TStringTemplate = class
   private
   private
     fVariables : TDictionary<string,string>;
     fVariables : TDictionary<string,string>;