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.6 required=5.0 tests=BAYES_05,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,355f90547d1b4b5 X-Google-Attributes: gid103376,public From: Marin David Condic Subject: Re: PRECOMPILATION Date: 1999/02/09 Message-ID: <36C05B9A.F91E7A05@pwfl.com>#1/1 X-Deja-AN: 442451329 Content-Transfer-Encoding: 7bit Sender: condicma@bogon.pwfl.com References: <918556681.260459@dedale.pandemonium.fr> Content-Type: text/plain; charset=us-ascii Organization: Pratt & Whitney Mime-Version: 1.0 Reply-To: diespammer@pwfl.com Newsgroups: comp.lang.ada Date: 1999-02-09T00:00:00+00:00 List-Id: =:-) Vincent wrote: > > Are there precompilation instructions in Ada95, > like in C (#ifdef,...etc) ? In other words, how can > I set compilation conditions ? > Ada doesn't generally like conditional compilation. However, the GNAT compiler (and maybe others - I don't know if it has been adopted widely) provides the "pragma Debug" and the "pragma Assert" which provide some level of conditional compilation. Over usage can lead to difficult to read code and make things harder to debug, so use this judiciously. MDC -- Marin David Condic Real Time & Embedded Systems, Propulsion Systems Analysis United Technologies, Pratt & Whitney, Large Military Engines M/S 731-95, P.O.B. 109600, West Palm Beach, FL, 33410-9600 Ph: 561.796.8997 Fx: 561.796.4669 ***To reply, remove "bogon" from the domain name.*** "Government is not reason. It is not eloquence. It is a force. Like fire, a dangerous servant and a fearful master." -- George Washington