From: playerdark@sociolotron.com
Subject: Re: Exclude parts of a package
Date: Fri, 6 Dec 2013 00:04:18 -0800 (PST)
Date: 2013-12-06T00:04:18-08:00 [thread overview]
Message-ID: <26192ef7-6412-4be1-93f7-9ac135bd9d5d@googlegroups.com> (raw)
In-Reply-To: <52a0de7e$0$23162$2c885b36@post.eweka.nl>
I was faced with the same problem and this here helped me solve it:
http://gcc.gnu.org/onlinedocs/gnat_ugn_unw/Preprocessing.html#Preprocessing
In short: add a switch to the compiler evocation like
-gnateDDEBUG
where "DEBUG" is the defined preprocessor value to test for, then you can write lines like the following in your code as described in that link I gave above:
#if DEBUG or else (PRIORITY > 4) then
bunch of declarations
#else
completely different bunch of declarations
#end if;
next prev parent reply other threads:[~2013-12-06 8:04 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-05 20:13 Exclude parts of a package Felix Krause
2013-12-06 1:58 ` gautier_niouzes
2013-12-06 7:51 ` Chris Moore
2013-12-06 8:04 ` playerdark [this message]
2013-12-06 11:14 ` Brian Drummond
2013-12-06 11:14 ` Brian Drummond
2013-12-06 11:41 ` Brian Drummond
2013-12-06 20:48 ` Felix Krause
2013-12-06 21:27 ` Shark8
2013-12-07 8:41 ` Felix Krause
2013-12-07 11:55 ` Brian Drummond
2013-12-08 20:00 ` Stephen Leake
2013-12-12 14:30 ` Marius Amado-Alves
2013-12-13 13:16 ` Felix Krause
2013-12-13 16:17 ` Stephen Leake
2014-01-02 15:06 ` Marius Amado-Alves
2014-01-02 15:07 ` Marius Amado-Alves
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox