[fpc-pascal] will be work macro with name of the unit?
ulrich
romrum at cbox.cz
Tue Jul 14 09:13:59 CEST 2015
Hi,
I have this unit, but when I compile it, I get this error:
Illegal unit name XXX_Parser. The unit is saved under dfm_rrparser.pas.
Second question:
Why not displayed $INFO directive in the message window (I have enabled
-vi switch in command line)?
{$IFDEF FPC}
{$MACRO ON}
{$IFNDEF XXX_}
{$DEFINE XXX_:=DFM_RR} // replace prefix
{$ENDIF}
{$ENDIF}
{$INFO compiled with XXX_}
unit XXX_parser;
{$mode objfpc}{$H+}
interface
implementation
end.
Thanks
Roman
More information about the fpc-pascal
mailing list