[gambit-list] c style #ifdef
Marc Feeley
feeley at iro.umontreal.ca
Fri May 4 08:32:48 EDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 3-May-07, at 4:16 PM, paul bite wrote:
> hi
>
> there is a way to do #ifdef like c.
> I really need something that works like:
> #ifdef DEBUG
> ...
> #endif
This will do:
(define-cond-expand-feature DEBUG)
(cond-expand
(DEBUG
(display "debugging\n"))
(else
(display "not debugging\n")))
Note that the define-cond-expand-feature does a global mutation of
the list of cond-expand features. So the scope includes all the
files that are loaded or compiled from that point on.
Marc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
iD8DBQFGOyfw//V9Zc2T/v4RAlTnAJ4po6JKHRMpo1YAIc8ClQTlbTQwdACeNtW1
i4E4BVxjTqQEiRaTi9Ez8nQ=
=uNTY
-----END PGP SIGNATURE-----
More information about the Gambit-list
mailing list