[Lazarus] Word of warning when sharing code between Delphi and FPC

mitya boyarintsev mityasoft at gmail.com
Fri Aug 29 10:42:57 CEST 2008


how about, redirecting writeln's somethere in Delphi Debug mode?

something like that. I'm not sure if it works

initialization

{$ifndef fpc}{$ifdef debug}

AssignFile(output, 'redirstdout.txt'); Rewrite(output);

{$endif}{$endif}

finalization

{$ifndef fpc}{$ifdef debug}

CloseFile(output);

{$endif}{$endif}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20080829/1be80c6d/attachment-0007.html>


More information about the Lazarus mailing list