|
@@ -171,6 +171,7 @@ interface
|
|
|
public
|
|
|
procedure ppuwrite(ppufile:tcompilerppufile);override;
|
|
|
function count_locals:longint;
|
|
|
+ function iscurrentunit: boolean; override;
|
|
|
end;
|
|
|
|
|
|
tlocalsymtable = class(tabstractlocalsymtable)
|
|
@@ -1925,6 +1926,13 @@ implementation
|
|
|
end;
|
|
|
end;
|
|
|
|
|
|
+ function tabstractlocalsymtable.iscurrentunit: boolean;
|
|
|
+ begin
|
|
|
+ Result:=
|
|
|
+ assigned(defowner) and
|
|
|
+ defowner.owner.iscurrentunit;
|
|
|
+ end;
|
|
|
+
|
|
|
|
|
|
{****************************************************************************
|
|
|
TLocalSymtable
|