comp.lang.ada
 help / color / mirror / Atom feed
* Any Suggestion How To Accomplish A Debug Macro?
@ 2014-12-30  3:12 Hubert
  2014-12-30 11:14 ` Simon Wright
  2014-12-30 16:24 ` sbelmont700
  0 siblings, 2 replies; 13+ messages in thread
From: Hubert @ 2014-12-30  3:12 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-01-02 22:17 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-30  3:12 Any Suggestion How To Accomplish A Debug Macro? Hubert
2014-12-30 11:14 ` Simon Wright
2014-12-30 11:45   ` Hubert
2014-12-30 20:07   ` Brad Moore
2014-12-30 22:11     ` Randy Brukardt
2015-01-01 12:28       ` Georg Bauhaus
2015-01-02 20:37       ` J-P. Rosen
2015-01-02 21:13         ` Dmitry A. Kazakov
2015-01-02 21:52           ` Randy Brukardt
2015-01-02 22:17             ` Niklas Holsti
2014-12-31  0:15     ` Luke A. Guest
2014-12-30 16:24 ` sbelmont700
2014-12-30 18:21   ` Simon Wright

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox