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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f0aecf9351d714ac X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Fri, 12 Sep 2008 22:32:58 -0500 From: "Steve" Newsgroups: comp.lang.ada References: Subject: Re: C Macros and their equivalent in Ada Date: Fri, 12 Sep 2008 20:33:06 -0700 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-RFC2646: Format=Flowed; Original Message-ID: X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 71.59.220.217 X-Trace: sv3-BgPBk5sTdvDXGqtbnfFpi/WWcCDzpqxPNrF49qeM9qYixV2Ws3etteP5DV2BRJTLyWEX6pNfTLh7tVi!KIlpomhnDFJsRI7EdWhuM3YXfb3oDS1QGYpyIOGcI9SWxSZpSOlzKoZQ+UKKBgfzekpN2vQSMrjW!BJ5EIqEkQiMr3xJFULv7rbcvNIhgAg== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 Xref: g2news2.google.com comp.lang.ada:7737 Date: 2008-09-12T20:33:06-07:00 List-Id: wrote in message news:f0560361-31c2-4a3d-851c-639cdfc5ac46@i76g2000hsf.googlegroups.com... > are there Ada equivalents of the C macros like : > > __DATE__, __TIME__ > > My searches have not revealed anything. have i missed any obvious > pragmas? > > thanks, srini Years ago I was looking for exactly the same thing on a Windows target. So far as I could find, Ada doesn't have a standard way of accessing this information. The reason I was looking for the information is so that a program could report when it was built. I found an alternative that works on Windows. There is a windows API function GetFileVersionInfo that may be used to obtain the date and time the executable was linked. If this happens to be what you're looking for, let me know and I can send (or post) source code. Regards, Steve