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 10.107.134.135 with SMTP id q7mr28765660ioi.1.1438007313794; Mon, 27 Jul 2015 07:28:33 -0700 (PDT) X-Received: by 10.140.91.182 with SMTP id z51mr443570qgd.5.1438007313671; Mon, 27 Jul 2015 07:28:33 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!f3no3529690igg.0!news-out.google.com!b31ni834qge.0!nntp.google.com!z61no3593695qge.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 27 Jul 2015 07:28:33 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=81.203.145.32; posting-account=AFCLjAoAAABJAOf_HjgEEEi3ty-lG5m2 NNTP-Posting-Host: 81.203.145.32 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Running a preprocessor from GPS? From: EGarrulo Injection-Date: Mon, 27 Jul 2015 14:28:33 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:27031 Date: 2015-07-27T07:28:33-07:00 List-Id: I would like to add logging statements to my units. By using GNATColl.Trac= es, I could add lines like this one: if Active (Me) then Trace (Me, "Performing Step " & Step(...)); end if; However, this is too verbose. I could write all the three statements onto = a single line, but that wouldn't be able to use the "Pretty Print" function= of GPS. Therefore, I must find a way to use a preprocessor macro -- inste= ad -- that lets me write a statement like this one: TRACE (Me, "Performing Step " & Step(...)); Now, it seems to me that `gnatprep` only lets you define symbol macros, no= t function macros, therefore `gnatprep` cannot be used here. Is this corre= ct? If it is, then I must use another processor (like `m4`, for example). = But, how can I integrate an external preprocessor in GPS so that `Build` a= nd `Build All` will perform macro expansion before compilation? Thank you.