Re: SOLVED: The date at compile time?
Re: SOLVED: The date at compile time?
- Subject: Re: SOLVED: The date at compile time?
- From: "Clark Cox" <email@hidden>
- Date: Wed, 28 Feb 2007 08:23:39 -0800
The following macros:
__DATE__
__TIME__
__FILE__
__LINE__
are all defined by the C standard. They will be supported by any C
compiler. (C99 adds several more, but those listed above are the ones
most likely to be useful to you).
On 2/28/07, Alexander v. Below <email@hidden> wrote:
It is __DATE__
What is weird is that this does not show up with gcc -dM -E -x c - <<<''
Is there a way I can list these obscure preprocessor definitions?
Alex
Am 28.02.2007 um 16:15 schrieb Alexander v. Below:
> Hello List,
>
> is it possible to create a define which expands to the current date
> at compile time? Something like NSLog ("This source was compiled on
> %s", $COMPILEDATE). I am happy to convert from any format (seconds,
> strings, whatever)
>
> Thanks a lot
>
> Alex
--
Clark S. Cox III
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden