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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a24:f587:: with SMTP id k129mr20639315ith.77.1560270879709; Tue, 11 Jun 2019 09:34:39 -0700 (PDT) X-Received: by 2002:a9d:6c13:: with SMTP id f19mr34665866otq.76.1560270879573; Tue, 11 Jun 2019 09:34:39 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.dns-netz.com!news.freedyn.net!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!85.12.16.70.MISMATCH!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.am4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!g15no205756itd.0!news-out.google.com!l135ni457itc.0!nntp.google.com!g15no205752itd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 11 Jun 2019 09:34:39 -0700 (PDT) In-Reply-To: <7bb01593-2920-4d58-b9b5-2fdad4ef74e5@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=146.5.2.29; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC NNTP-Posting-Host: 146.5.2.29 References: <7bb01593-2920-4d58-b9b5-2fdad4ef74e5@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <2f99a781-90b2-4811-b10c-0ca499d66b52@googlegroups.com> Subject: Re: Can AdaMULTI preprocessor directives be defined with the GUI? From: Shark8 Injection-Date: Tue, 11 Jun 2019 16:34:39 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 2114 X-Received-Body-CRC: 3158368414 Xref: reader01.eternal-september.org comp.lang.ada:56616 Date: 2019-06-11T09:34:39-07:00 List-Id: On Tuesday, June 11, 2019 at 10:19:20 AM UTC-6, Judy...@gmail.com wrote: > Hello, > > Is it possible to define a preprocessor directive variable using something like the AdaMULTI GUI interface itself instead of defining a variable within the code? > > I.E.: Can I define the following using the GUI itself or some other way without defining the variable within the Ada code? Do I have more than one option? What's the best way to do it? > > #if DAYSOFOURLIVES'DEFINED then > > --... > #end if; Ada has no preprocessor; this was a deliberate design-decision. The way such conditional variance is typically handled is through the tooling/project system. (e.g. by specifying a particular implementation [ADB file] to associate with the corresponding specification for that particular compilation.)