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!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newspeer.monmouth.com!newsgate.cistron.nl!xs4all!news2.euro.net!azure.qinip.net!xara.net!gxn.net!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Conditional compilation of debug traces without cpp Date: Tue, 04 Jul 2006 21:54:05 +0100 Organization: Pushface Message-ID: References: <44aaae35$0$5389$626a54ce@news.free.fr> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1152046445 12657 62.49.19.209 (4 Jul 2006 20:54:05 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Tue, 4 Jul 2006 20:54:05 +0000 (UTC) Cancel-Lock: sha1:LuEeEQ2/kea/FDnZ2ESxsvDj/MM= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news2.google.com comp.lang.ada:5494 Date: 2006-07-04T21:54:05+01:00 List-Id: guillaume.portail@grospied.enanglais.com writes: > Debug.Enabled is a compile time constant, so with a bit of -O3 pragma > Inline or other (-gnatN), the binary implementation of Debug.Put_Line > will be null. I don't think you need more than -O2 for this magic to work. But it's a promise made by GNAT, other compilers may behave differently. You could check out gnatprep, I suppose.