From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,HEADER_SPAM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff499,27400c11daf8f7b2,start X-Google-Attributes: gidff499,public X-Google-Thread: 103376,27400c11daf8f7b2,start X-Google-Attributes: gid103376,public From: dommo1234@my-deja.com Subject: Ada95 location information Date: 1999/06/14 Message-ID: <99-06-064@comp.compilers>#1/1 X-Deja-AN: 489691430 Sender: johnl@iecc.com X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com Organization: Deja.com - Share what you know. Learn what you don't. Keywords: Ada, question Newsgroups: comp.lang.ada,comp.compilers X-FAQ-and-archives: http://www.iecc.com/compilers Date: 1999-06-14T00:00:00+00:00 List-Id: All, I'm writing a program in Ada95 and require that when exceptions are thrown, the location in the source code is included in the message, not just in the call stack display. I realise there's no pre-processor, but C and C++ compilers have special tags, eg. "__LINE__", and I wonder whether Ada compilers have anything silimar. Does anyone know of any way to obtain this information from the compiler at compile time? I'm using the Aonix ObjectAda compiler by the way (version 7.1.105, special edition). Thanks, Dom.