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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c6546cb6e04b1761 X-Google-Attributes: gid103376,public From: carl@nlr.nl (Carl G.M. Welman) Subject: Re: __FILE__ and __LINE__ Date: 1997/04/08 Message-ID: <5id07f$3ap@nlrgup.nlr.nl>#1/1 X-Deja-AN: 231502206 References: <5ia77f$go3@nlrgup.nlr.nl> Organization: The National Aerospace Laboratory NLR Newsgroups: comp.lang.ada Date: 1997-04-08T00:00:00+00:00 List-Id: Robert Dewar wrote: > ... > It would be easy to implement an attribute (not a pragma, I don't see > how a pragma would work) that would provide this information, e.g. > Standard'Line > Standard'File > (applying attributes to Standard in such a case is an existing trick > in GNAT for defining new attributes) > ... You're right. Attributes are preferred (also from a user's point of view). I've thought about Attributes for this job, but I couldn't find appropriate Attributes. Furhermore, I couldn't figure out where they should be Attributes of. I suppose that a small Ada preprocessor can also do the job. In this case, other macros like __DATE__ and __TIME__ can also be expanded. (There is no need to do this for the __STDC__ macro.) Regards, Carl.