:: Re: [DNG] Error handling alternativ…
Forside
Slet denne besked
Besvar denne besked
Skribent: kc-devuan
Dato:  
Til: dng
Emne: Re: [DNG] Error handling alternatives (was Re: another programming language question)
25 Oct 2024 20:38:05 karl@???:

> I checked out elogs, it seems to save compilation date, software
> version, device id ???, but can ADA find out that something happened
> in file xx, line yy, in fuction zz ?


Yes. Using the GNAT.Source_Info package that comes with the Gnat.

https://gcc.gnu.org/onlinedocs/gnat_rm/GNAT-Source_005fInfo-g-souinf-ads.html

My elogs package used to use it but I switched to a random id String.