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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.ecp.fr!news.muarf.org!nntpfeed.proxad.net!proxad.net!feeder2-2.proxad.net!nx01.iad01.newshosting.com!newshosting.com!69.16.185.111.MISMATCH!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!fx22.iad.POSTED!not-for-mail From: Hubert User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Any Suggestion How To Accomplish A Debug Macro? Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 141229-1, 12/29/2014), Outbound message X-Antivirus-Status: Clean Message-ID: X-Complaints-To: abuse@newsdemon.com NNTP-Posting-Date: Tue, 30 Dec 2014 03:11:51 UTC Organization: http://www.NewsDemon.com Date: Mon, 29 Dec 2014 19:12:02 -0800 X-Received-Bytes: 1240 X-Received-Body-CRC: 880223962 Xref: news.eternal-september.org comp.lang.ada:24282 Date: 2014-12-29T19:12:02-08:00 List-Id: I know there is no such thing as C #define's in Ada, but isn't there a way to make some sort of debug macro? In my C++ code I use a lot of statements like PRINT(DEBUG_CHANNEL, "TEXT" ); to print out debug messages and in release code, these defines aren't compiled. Is there any way to achieve something like this in Ada without surrounding it with an IF statement and a boolean flag? Thanks --- This email has been checked for viruses by Avast antivirus software. http://www.avast.com