[fpc-devel] Nested register error for procedure passing address

Andrew Brunner andrew.t.brunner at gmail.com
Mon Jan 10 23:43:15 CET 2011


procedure Something(Param1...);
var
  my:TMyData;
  procedure Testing; inline; // or whatever
  begin
    my.test:=0;
  end;

begin

  MyAPI.DoeSomething(Param1, at Testing);

end;

I want to be able to pass Testing as a variable so the callback can
occur but realize that FPC did not like nested proc.  Is there a
directive to resolve this?



More information about the fpc-devel mailing list