conditional compilation with gnatmake



Back in July, there was a thread about conditional compilation:

http://groups.google.com/group/comp.lang.ada/browse_thread/thread/634259facc42df7a/2af882a659c4e1f6?lnk=st&q=&rnum=1&hl=en#2af882a659c4e1f6

I said at one point:

In GNAT, the use of preprocessed files is not so transparent,
because gnatmake does not know how to run the preprocessor.

However, I was browsing the GNAT 5.04a user's guide recently, and
discovered that gnatmake does, in fact, know how (and when) to run the
gnatprep preprocessor.

GNAT-GPL-2006 also has this feature.

The "super-secret documentation" strikes again :).

--
-- Stephe
.



Relevant Pages

  • Re: Conditional compilation of debug traces without cpp
    ... "GNAT PREPROCESS" writes the preprocessed file to the ... The Gnu C preprocessor _does_ write the intermediate file, ... the act of writing the file to the disk is transparent to ... If you use the GNAT default naming convention for the original ...
    (comp.lang.ada)
  • Re: Preprocessor functionality equivalent ideas needed
    ... > know Ada does not have a preprocessor, so how should I go about ... Some compilers do provide a preprocessor. ... GNAT for expample. ... booch components into booch components for indefinite elements. ...
    (comp.lang.ada)
  • Re: Teaching new tricks to an old dog (C++ -->Ada)
    ... > And if you like a preprocessor - just use one! ... > compiler is called. ... GNAT comes with an Ada-centric preprocessor but ...
    (comp.lang.cpp)
  • Re: Teaching new tricks to an old dog (C++ -->Ada)
    ... > And if you like a preprocessor - just use one! ... > compiler is called. ... GNAT comes with an Ada-centric preprocessor but ...
    (comp.lang.ada)
  • Re: Question about background: transparent
    ... let me say that I found the warning less than clear ... Note that transparent is the default. ... terms of the cascade, in that the default has a different cascading ... through the preprocessor as part of your publish-to-web procedure ...
    (comp.infosystems.www.authoring.stylesheets)