On 4/5/07, foobar <[EMAIL PROTECTED]> wrote:
Hi,
i just tested the new c-string-list of the current head-revision
and it works like a charme. The problem that arises now, is
that i want to provide a workaround-implementation for
the current stable-release. For that purpose i need to
conditionally select one of the implementation during
compilation, depending on the chicken-version used.
Is there a way to accomplish this?
(chicken-version) gives you the current version as a string,
so you could check (with string>=?), for example inside a macro:
(define-macro (with-chicken v . body)
(if (string>=? (chicken-version) "2.608")
`(begin ,@body)
'(void) ) )
cheers,
felix
_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users