I can use the function File as a package global constant. Any other ideas?
I shall go with doing the above per package for Gnat.Source_Info.File and
wrapping the Gnat.Source_Info.Line procedure with one marked with Global => null.
Where would I suggest that Global => null be added to Line?
Doh...Of course I can't wrap Line, ha ha. If I want the right line.
Perhaps
private with Gnat.Source_Info;
package Source_Line_Info with SPARK_Mode is
function Line ... with Global => null;
private -- Source_Line_Info
pragma SPARK_Mode (Off);
function Line ... renames Gnat.Source_Info.line;
end Source_Line_Info;
(Untested)
On 09/12/2023 14:16, Kevin Chadwick wrote:
I shall go with doing the above per package for Gnat.Source_Info.File and
wrapping the Gnat.Source_Info.Line procedure with one marked with Global => >> null.
Doh...Of course I can't wrap Line, ha ha. If I want the right line.
I can use the function File as a package global constant. Any other ideas?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 399 |
Nodes: | 16 (2 / 14) |
Uptime: | 83:34:27 |
Calls: | 8,359 |
Calls today: | 4 |
Files: | 13,162 |
Messages: | 5,896,262 |