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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,634259facc42df7a X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!a14g2000cwb.googlegroups.com!not-for-mail From: "Matthew Goulet" Newsgroups: comp.lang.ada Subject: Re: Conditional compilation of debug traces without cpp Followup-To: comp.lang.ada Date: 4 Jul 2006 20:10:31 -0700 Organization: http://groups.google.com Message-ID: <1152069031.901000.38190@a14g2000cwb.googlegroups.com> References: <44aaae35$0$5389$626a54ce@news.free.fr> <873bdhgpdk.fsf@ludovic-brenta.org> <44aabe0c$0$5715$626a54ce@news.free.fr> NNTP-Posting-Host: 68.68.130.195 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1152069035 30275 127.0.0.1 (5 Jul 2006 03:10:35 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 5 Jul 2006 03:10:35 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060406 Firefox/0.8 Firefox/1.5.0.4 (Debian-1.5.dfsg+1.5.0.4-1),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: a14g2000cwb.googlegroups.com; posting-host=68.68.130.195; posting-account=yLlJ6Q0AAACjX4d1DKwMmG8rfRSfe2So Xref: g2news2.google.com comp.lang.ada:5501 Date: 2006-07-04T20:10:31-07:00 List-Id: guillaume.portail@grospied.enanglais.com wrote: > Ludovic Brenta wrote: > > > You could place all calls to Debug.Put_Line inside a pragma Debug. > > These are enabled only if you pass -gnata to GNAT; they are off by > > default. > > > > HTH > > It helps, but it is GNAT specific. I would prefer a pure Ada solution. > > -- > Thierry Bernier AFAIK the reference manual specifies unknown pragmas should be ignored, so if development is done on GNAT pragma Debug could be used, and they'd be ignored on other compilers (sort of the desired effect). Not exactly compiler agnostic, but a thought. -Matt