summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/webtbf/tw2739.pp
blob: 450dc3c7af9bf9de0828a3e95092e419ebb3797e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ %fail }

{$mode Delphi}
unit tw2739;

interface



type
  TJclExceptNotifyProc = procedure (ExceptObj: TObject; ExceptAddr: Pointer; OSException: Boolean);
  TJclExceptNotifyMethod = procedure (ExceptObj: TObject; ExceptAddr: Pointer; OSException: Boolean) of object;



function JclAddExceptNotifier(const NotifyProc: TJclExceptNotifyProc ): Boolean; overload;
function JclAddExceptNotifier(const NotifyMethod: TJclExceptNotifyMethod): Boolean; overload;


implementation

function JclAddExceptNotifier(const NotifyProc: TJclExceptNotifyProc ): Boolean; overload;

begin
end;



function JclAddExceptNotifier(const NotifyMethod: TJclExceptNotifyMethod): Boolean; overload;
var
//  p : pointer;
  p : TJclExceptNotifyMethod;
begin
  { This fails @NotifyMethod returns a pointer to the proc }
  p:=@NotifyMethod;
end;


begin
end.