-
-
Notifications
You must be signed in to change notification settings - Fork 234
Open
Labels
Description
Similar ao que já se encontra na unit Horse.Callback, sugeriria avaliar a possibilidade de alterar a Horse.Proc da seguinte forma:
unit Horse.Proc;
{$IF DEFINED(FPC)}
{$MODE DELPHI}{$H+}
{$IF DEFINED(HORSE_FPC_FUNCTIONREFERENCES)}
{$MODESWITCH FUNCTIONREFERENCES+}
{$ENDIF}
{$ENDIF}
interface
{$IF NOT DEFINED(FPC)}
uses
System.SysUtils;
{$ENDIF}
type
TNextProc = {$IF DEFINED(FPC)}procedure of object{$ELSE}System.SysUtils.TProc{$ENDIF};
TProc = {$IF DEFINED(FPC)}{$IF DEFINED(HORSE_FPC_FUNCTIONREFERENCES)}reference to {$ENDIF}procedure{$ELSE}System.SysUtils.TProc{$ENDIF};
{$IF DEFINED(FPC)}
TProc<T> = {$IF DEFINED(HORSE_FPC_FUNCTIONREFERENCES)}reference to {$ENDIF}procedure(Arg1: T);
{$ENDIF}
implementation
end.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Todo