Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] autoconf and caml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-09-06 (12:31)
From: Stefano Zacchiroli <zack@c...>
Subject: pa_ifdef [Was: Re: [Caml-list] autoconf and caml]
On Fri, Sep 06, 2002 at 01:07:17PM +0200, Maxence Guesdon wrote:
> The pa_ifdef parser included with camlp4 may help you.
> Daniel, could you explain how to use it ? Or is a doc written ?

There is a bit (but enough to using it) of documentation about it in
Section 1.1 of the camlp4 manual.

BTW, last time I used it I was a bit annoyed because you can "ifdef"
only on type declaration or single "let" bindings IIRC while if you are
using such a tool you usually expect to be able to "ifdef" on a whole
block of code in a C-like fashion.

I don't know if such an extension to the pa_ifdef module is feasible
with camlp4 ...


Stefano Zacchiroli - undergraduate student of CS @ Univ. Bologna, Italy | ICQ# 33538863 |
"I know you believe you understood what you think I said, but I am not
sure you realize that what you heard is not what I meant!" -- G.Romney
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: