comp.lang.ada
 help / color / mirror / Atom feed
* Preprocessing Ada
@ 1999-05-25  0:00 David Starner
  1999-05-25  0:00 ` David Botton
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: David Starner @ 1999-05-25  0:00 UTC (permalink / raw)


I'm writing a library in Ada and I've hit a couple things where I would
use #ifdef's in C. I would like to offer alternate algorithims for the
same function that can be chosen at compile time. I would also like to
add an expensive verification call to the front of each function that
can be turned on and off at compile time (expensive enough that I want
it to be seperate from Pragma Assert.)

1. Is there a more 'Ada'-like way to do this?

2. Will cpp (the C pre-processor) work cleanly with Ada?

3. Is there a DFSG-free preprocessor for Ada? (I hate to go this way,
because that means that everyone who compiles the program needs a
special preprocessor.)




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1999-05-26  0:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-05-25  0:00 Preprocessing Ada David Starner
1999-05-25  0:00 ` David Botton
1999-05-26  0:00 ` Dale Stanbrough
1999-05-26  0:00 ` fraser
1999-05-26  0:00 ` Marin David Condic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox