[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Determine if program has been compiled
From: |
Peter Bex |
Subject: |
Re: [Chicken-users] Determine if program has been compiled |
Date: |
Sat, 12 Jul 2014 20:12:13 +0200 |
User-agent: |
Mutt/1.4.2.3i |
On Sat, Jul 12, 2014 at 11:09:24AM -0700, Christopher Collins wrote:
> Hello chicken users,
>
> Is there a way to determine, in code, whether a chicken program has been
> compiled? I am thinking of something similar to:
>
> (cond-expand
> (chicken-script ... )
>
> ...but with an identifer different from "chicken-script".
Hello Christopher,
There's a cond-expand identifier called "compiling". See also
http://wiki.call-cc.org/man/4/Non-standard%20macros%20and%20special%20forms#cond-expand
for other identifiers that you can dispatch on with cond-expand.
Cheers,
Peter
--
http://www.more-magic.net