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
Patches for #line directives?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 1997-07-11 (19:00)
From: Xavier Leroy <xleroy@p...>
Subject: Re: Patches for #line directives?
> Are there any patches floating around to make Caml-light and/or O'Caml
> support the #line directive?

The latest release of Objective Caml (1.05) supports the

        # linenum "filename"

directive (same format as the directives emitted by the C
preprocessor). It has not been tested extensively yet, but if it works
well and there is interest, we might fold it back into Caml Light later.

> In particular, I'm using noweb to generate
> some Caml code, and I would like the debugger to point me back to the
> original .nw source file.

This should work pretty well as long as you're careful about copying
whole lines from the .nw file to the generated .ml file.


- Xavier Leroy