Enclosing_Entity (GNAT Reference Manual) (original) (raw)
Next: Exception_Information, Previous: Compilation_Time, Up: Intrinsic Subprograms [Contents][Index]
8.5 Enclosing_Entity ¶
This intrinsic subprogram is used in the implementation of the library package GNAT.Source_Info
. The only useful use of the intrinsic import in this case is the one in this unit, so an application program should simply call the functionGNAT.Source_Info.Enclosing_Entity
to obtain the name of the current subprogram, package, task, entry, or protected subprogram.