[fpc-pascal] Does fpdoc sets a particular define ?

Yann Mérignac yann.merignac at gmail.com
Sat Oct 29 10:32:52 CEST 2016


I just tried with the trunk version and it works. Thank you.

Can anyone mark the bug report as resolved? (
http://bugs.freepascal.org/view.php?id=30810)

2016-10-28 12:22 GMT+02:00 Yann Mérignac <yann.merignac at gmail.com>:

> Thanks ! I'll try to build FPDoc from trunk and test.
>
> 2016-10-28 12:11 GMT+02:00 Michael Van Canneyt <michael at freepascal.org>:
>
>>
>>
>> On Fri, 28 Oct 2016, Yann Mérignac wrote:
>>
>> Hi all,
>>>
>>> While generating documentation for one of my projects I ran into a bug in
>>> fpdoc. It crashes on declarations like this one:
>>>
>>> -------
>>> type
>>>  TObjectBlob = class(specialize TGenBlob<TObject>)
>>>    ...
>>>  end;
>>> -------
>>>
>>> I reported the bug here: http://bugs.freepascal.org/view.php?id=30810
>>>
>>> Now, I am looking for a workaround. I know that something like this can
>>> work both with FPC and FPDoc:
>>>
>>> -------
>>> type
>>> {$ifdef FPDOC}
>>>  TIntermediate = specialize TGenBlob<TObject>;
>>>  TObjectBlob = class(TIntermediate)
>>> {$else}
>>>  TObjectBlob = class(specialize TGenBlob<TObject>)
>>> {$endif}
>>>    function ToString : String; override;
>>>  end;
>>> -------
>>>
>>> Is there a way to tell FPDoc to parse only the first part of $ifdef ?
>>>
>>> I have tried "fpdoc --input='-dFPDOC' --project=fpdocprj.xml
>>> --format=html"
>>> but it does not work.
>>>
>>
>> It should work in trunk.
>>
>> Michael.
>> _______________________________________________
>> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
>> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20161029/395f1cef/attachment.html>


More information about the fpc-pascal mailing list