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 autolearn=ham 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!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.scarlet.biz!news.scarlet.biz.POSTED!not-for-mail NNTP-Posting-Date: Tue, 04 Jul 2006 14:07:38 -0500 From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Conditional compilation of debug traces without cpp References: <44aaae35$0$5389$626a54ce@news.free.fr> Date: Tue, 04 Jul 2006 21:07:51 +0200 Message-ID: <873bdhgpdk.fsf@ludovic-brenta.org> User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:/IrxLEZFsfsW0l1GOMRVU+RrTDc= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 62.235.236.151 X-Trace: sv3-nH8zpjGD0GoP5dUQY+dzfJCY17D0cFGjuhgbQw4UbOgZlgcDLCl8TBaAUMDAqths4MExqETr6cPFW8J!BJPOPf9efAKR05167EK9JtVbR2XKIUx4Sa2OU24DAFtrJusdZSEtnVzFKGsUPBIZAiJOFy0sTEg= X-Complaints-To: abuse@scarlet.be X-DMCA-Complaints-To: abuse@scarlet.biz 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.32 Xref: g2news2.google.com comp.lang.ada:5485 Date: 2006-07-04T21:07:51+02:00 List-Id: guillaume.portail@grospied.enanglais.com writes: > How may I organize the code to obtain the effect of having Debug.* > calls being nulls when Debug.Enabled is False ? 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 -- Ludovic Brenta.