tprocdef.customprocname:

* if we have a compilerproc with a syssym then use the syssym's name when generating the name

git-svn-id: trunk@33892 -
This commit is contained in:
svenbarth 2016-06-03 20:55:48 +00:00
parent 8ec2d5478c
commit b4354aff5e

View File

@ -5699,6 +5699,7 @@ implementation
var
s, rn : ansistring;
t : ttoken;
syssym : tsyssym;
begin
{$ifdef EXTDEBUG}
include(pno,pno_showhidden);
@ -5742,7 +5743,15 @@ implementation
if (pno_ownername in pno) and
(owner.symtabletype in [recordsymtable,objectsymtable]) then
s:=s+tabstractrecorddef(owner.defowner).RttiName+'.';
rn:=procsym.realname;
if (po_compilerproc in procoptions) and (extnumber<>$ffff) then
begin
syssym:=tsyssym.find_by_number(extnumber);
if not assigned(syssym) then
internalerror(2016060305);
rn:=syssym.realname;
end
else
rn:=procsym.realname;
if (pno_noleadingdollar in pno) and
(rn[1]='$') then
delete(rn,1,1);