[fpc-devel] fpdoc and macros (-Sm)

Stefan Kisdaroczi kisda at hispeed.ch
Mon Jun 20 15:47:29 CEST 2005


Hi,

I tried fpdoc (fpc 2.0.0,win2000) and it crashes because it seems not to expand macros.

Example unit:

UNIT fpdoctest1;
{$DEFINE HELLO:=//}
HELLO WORLD;
INTERFACE
IMPLEMENTATION
END.

It compiles ok :
>fpc -Sm fpdoctest1.pas
Target OS: Win32 for i386
Compiling fpdoctest1.pas
11 Lines compiled, 0.0 sec

fpdoc failes:
>fpdoc --package=test --input='-Sm fpdoctest1.pas'
FPDoc - Free Pascal Documentation Tool
(c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther, sg at freepascal.org

fpdoctest1.pas(5,5): Expected "interface" at token "Identifier HELLO"
An unhandled exception occurred at $0040E3DC :
EAccessViolation : Access violation
  $0040E3DC
  $0040E317
  $00402417
  $004027B6

I need this type of defines, even if it looks strange...
It's not a urgent problem, but it would be nice if it works.

Should this work ?
It is known not to work ?
What needs to be done (and where) to make this work ?

Thank you
kisda

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20050620/d66a9e86/attachment.sig>


More information about the fpc-devel mailing list