edoc crashes

Richard Carlsson richardc@REDACTED
Thu Aug 12 16:54:41 CEST 2004


On Thu, 12 Aug 2004, Mikael Karlsson wrote:

> edoc crashes when it encounters a line:
>
> -define( white(X), X == ?SPACE ; X == ?NEWLINE ; X == ?TAB ; X == ?RETURN ).
>
> in an .erl file.

The default behaviour of EDoc can only handle defines that look like
normal expressions. The semicolons break this property.

Try turning on the preprocess option, as in:

	edoc:file("foo.erl", [preprocess])

but then you may have to also add the following options:

	{includes, [Dir1, Dir2, ...]}
	{macros, [{Atom1,Value1},{Atom2,Value2}, ...]}

    /Richard


Richard Carlsson (richardc@REDACTED)   (This space intentionally left blank.)
E-mail: Richard.Carlsson@REDACTED	WWW: http://user.it.uu.se/~richardc/
 "Having users is like optimization: the wise course is to delay it."
   -- Paul Graham



More information about the erlang-questions mailing list