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

_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to