Simba: Attempt to fix include_once behaviour.

This commit is contained in:
Merlijn Wajer 2011-07-26 21:44:01 +02:00
parent 31df8c695a
commit 303253aeed
2 changed files with 9 additions and 3 deletions

View File

@ -26,6 +26,8 @@
// See Units/Linux/keybinder.pas
{$ENDIF}
//{$DEFINE SIMBA_VERBOSE} // For more verbosity.
//{$DEFINE USE_RUTIS}
//{$DEFINE USE_CPASCAL} // TODO

View File

@ -746,11 +746,15 @@ begin
if (path <> '') then
if Includes.Find(path,i) then
begin
psWriteln('Include_Once file already included');
Result := False;
{$IFDEF SIMBA_VERBOSE}
psWriteln('Include_Once file already included:' + Path);
{$ENDIF}
Result := True;
Exit;
end;
Includes.Add(path);
Result := True;
Result := False;
end;
procedure SIRegister_Mufasa(cl: TPSPascalCompiler);