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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d79d55198abf90d8 X-Google-Attributes: gid103376,public From: dvdeug@x8b4e53cd.dhcp.okstate.edu (David Starner) Subject: Re: Conditional Compilation Date: 2000/09/19 Message-ID: <8q89uv$9281@news.cis.okstate.edu>#1/1 X-Deja-AN: 671715870 References: <7FEFA9E5E3B3C4A5.90418F4BE7D5AE58.48E094CF81EC6BD3@lp.airnews.net> Organization: Oklahoma State University User-Agent: slrn/0.9.6.2 (Linux) Reply-To: dstarner98@aasaa.ofe.org Newsgroups: comp.lang.ada Date: 2000-09-19T00:00:00+00:00 List-Id: On Tue, 19 Sep 2000 13:15:35 -0400, Kenneth Kueny wrote: >Does ADA have an analog to the C language #define, #ifdef constructs >commonly used to include or exclude certain blocks of code in different code >versions? No. IIRC, the usual method is to make seperate bodies for the different versions, and only compile the one you want to use. Alternately, you can use the preprocessor of your choice on the code - gnatprep comes with GNAT, or you can use M4 or some other generic preprocessor. (I've heard cpp has problems with the ' attribute syntax, though.) -- David Starner - dstarner98@aasaa.ofe.org http/ftp: dvdeug.dhis.org And crawling, on the planet's face, some insects called the human race. Lost in space, lost in time, and meaning. -- RHPS