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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fd63afa4dc364b7e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-26 08:18:04 PST From: "Martin Dowie" Newsgroups: comp.lang.ada References: <98m938$2iod0$1@ID-25716.news.dfncis.de> Subject: Re: Implementing C/C++ style #include... Date: Mon, 26 Mar 2001 17:13:09 +0100 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 NNTP-Posting-Host: sg2c11210.dsge.edinbr.gmav.gecm.com Message-ID: <3abf68c9$1@pull.gecm.com> X-Trace: 26 Mar 2001 17:05:29 GMT, sg2c11210.dsge.edinbr.gmav.gecm.com Path: supernews.google.com!sn-xit-03!supernews.com!freenix!teaser.fr!nerim.net!grolier!btnet-peer0!btnet-feed3!btnet!newreader.ukcore.bt.net!pull.gecm.com!sg2c11210.dsge.edinbr.gmav.gecm.com Xref: supernews.google.com comp.lang.ada:6060 Date: 2001-03-26T17:13:09+01:00 List-Id: you could just use the C pre-processor, but I've never really seen anything that you couldn't do in Ada - one trick I use is to always have a package called 'Project' which contains the same details about a project as constants and let the compiler then work out which branches that can't be reached. For difference configurations this should be the one of the few files then needing changed. e.g. package Project is Name : constant String := "Blah"; type An_Endian is (Little_Endian, Big_Endian): Byte_Endian : constant An_Endian := ...; type A_Processor is (X86, PowerPC, ARM); Processor : constant A_Processor := Power_PC; -- etc end Project; bhazzard wrote in message news:OrZxgIisAHA.289@cpmsnbbsa09... > A quick question... > > Is there any way to implement c/c++ style > #ifdef pre-processor statements in Ada. > > Do Ada compilers have a pre-processor ? >