[erlang-questions] edoc and nested src folder tree structure

Richard Carlsson carlsson.richard@REDACTED
Tue Nov 4 13:35:27 CET 2014


Yeah, it's not possible to handle that sort of code without letting the
preprocessor expand it first. If you don't want to rewrite it, you'll need
to pass the 'preprocess' option to edoc. In that case you may also need to
pass some additional include paths in order for it to find the header files.


        /Richard

On Tue, Nov 4, 2014 at 1:10 PM, Maxim Sokhatsky <maxim@REDACTED> wrote:

> Thanks, now it fails at
>
> -include("api.hrl").
> -export(?API).
>
> whre in api.hrl I have
>
> -define(API, [find_executable/0, start_port/2, known_events/0,
> line_to_event/1]).
>
> with:
>
> /Users/5HT/depot/.../deps/fs/src/sys/fanotify.erl: at line 3: bad function
> arity
> edoc: skipping source file
> '/Users/5HT/depot/.../deps/fs/src/sys/fanotify.erl': {'EXIT',error}.
>
> --
> Maxim
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20141104/b091f7c2/attachment.htm>


More information about the erlang-questions mailing list