URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 304 |
Rev 338 |
package body Tagged_Type_Pkg is
|
package body Tagged_Type_Pkg is
|
|
|
function Pass_TT_Access (Obj : access TT'Class) return access TT'Class is
|
function Pass_TT_Access (Obj : access TT'Class) return access TT'Class is
|
begin
|
begin
|
if Obj = null then
|
if Obj = null then
|
return null;
|
return null;
|
|
|
else
|
else
|
-- The implicit conversion in the assignment to the return object
|
-- The implicit conversion in the assignment to the return object
|
-- must fail if Obj's actual is not a library-level object.
|
-- must fail if Obj's actual is not a library-level object.
|
|
|
return TT_Acc : access TT'Class := Obj do
|
return TT_Acc : access TT'Class := Obj do
|
TT_Acc := TT_Acc.Self;
|
TT_Acc := TT_Acc.Self;
|
end return;
|
end return;
|
end if;
|
end if;
|
end Pass_TT_Access;
|
end Pass_TT_Access;
|
|
|
end Tagged_Type_Pkg;
|
end Tagged_Type_Pkg;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.