From: carl@nlr.nl (Carl G.M. Welman)
Subject: Re: __FILE__ and __LINE__
Date: 1997/04/08
Date: 1997-04-08T00:00:00+00:00 [thread overview]
Message-ID: <5id07f$3ap@nlrgup.nlr.nl> (raw)
In-Reply-To: dewar.860416526@merv
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.
next prev parent reply other threads:[~1997-04-08 0:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-04-07 0:00 __FILE__ and __LINE__ Carl G.M. Welman
1997-04-07 0:00 ` Robert Dewar
1997-04-08 0:00 ` Carl G.M. Welman [this message]
1997-04-08 0:00 ` Robert Dewar
1997-04-09 0:00 ` Fergus Henderson
1997-04-07 0:00 ` David C. Hoos, Sr.
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox