:: Re: [DNG] Error handling alternativ…
Page principale
Supprimer ce message
Répondre à ce message
Auteur: Kevin Chadwick
Date:  
À: dng
Sujet: Re: [DNG] Error handling alternatives (was Re: another programming language question)
On 25/10/2024 16:53, karl@??? wrote:
> I.e. I can see what file, function (depending on c version) and line
> number, also I can follow the failure path. Can you do something
> similar in ADA ?


You can use the GNAT.Source_Info package. Ada chose not to allow macros as
whilst occasionally useful. "They are always abused" (not meaning in your case
here).

For logging on a micro I use the following which is proven to silver level and
so absent of runtime errors (can't crash).