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,d082b5e68690d912 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news1.google.com!proxad.net!fdn.fr!news.wanadoo.fr!news.wanadoo.fr!not-for-mail Message-ID: <43B11F0F.3040609@obry.net> Date: Tue, 27 Dec 2005 12:01:35 +0100 From: Pascal Obry Organization: Home - http://www.obry.net User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: fr, en MIME-Version: 1.0 Newsgroups: comp.lang.ada To: ada_develop Subject: Re: Discriminating Ada source code through compiler arguments References: <1135679115.072709.20600@g14g2000cwa.googlegroups.com> In-Reply-To: <1135679115.072709.20600@g14g2000cwa.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Date: 27 Dec 2005 12:01:40 CET NNTP-Posting-Host: 86.195.38.77 X-Trace: 1135681300 news.wanadoo.fr 29221 86.195.38.77:2923 X-Complaints-To: abuse@wanadoo.fr Xref: g2news1.google.com comp.lang.ada:2369 Date: 2005-12-27T12:01:40+01:00 List-Id: ada_develop a �crit : > Hello. I�m a newie in Ada and I want to known how can I pass arguments > to the compiler to discriminate parts of a Ada source code. Something > like the #ifdefs that we can use in the C programming languaje. This really depends on your compiler. There is not standard for doing this in Ada. Note that this is by design, #ifdef is considered bad practice and a maintenance nightmare! If you are using GNAT you can check gnatprep. But a better solution is often to have one spec and multiple bodies for different implementations. But without knowing more about your goal it is difficult to devise the solution. Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.net --| "The best way to travel is by means of imagination" --| --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595