mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-18 04:49:43 +02:00
MG: added check if method exists
git-svn-id: trunk@3465 -
This commit is contained in:
parent
368c58fc81
commit
22bf0ac14e
@ -459,8 +459,9 @@ begin
|
||||
JITForm.ClassName);
|
||||
OldCode:=JITForm.MethodAddress(AName);
|
||||
if OldCode<>nil then begin
|
||||
Result.Code:=OldCode;
|
||||
Result.Data:=JITForm;
|
||||
Result.Code:=OldCode;
|
||||
exit;
|
||||
end;
|
||||
CodeTemplate:=MethodAddress('DoNothing');
|
||||
CodeSize:=100; // !!! what is the real codesize of DoNothing? !!!
|
||||
|
Loading…
Reference in New Issue
Block a user