Skip to content

Commit

Permalink
Simba: Attempt to fix include_once behaviour.
Browse files Browse the repository at this point in the history
  • Loading branch information
MerlijnWajer committed Jul 26, 2011
1 parent 31df8c6 commit 303253a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Projects/Simba/Simba.inc
Expand Up @@ -26,6 +26,8 @@
// See Units/Linux/keybinder.pas
{$ENDIF}

//{$DEFINE SIMBA_VERBOSE} // For more verbosity.

//{$DEFINE USE_RUTIS}

//{$DEFINE USE_CPASCAL} // TODO
Expand Down
10 changes: 7 additions & 3 deletions Units/MMLAddon/mmlpsthread.pas
Expand Up @@ -746,11 +746,15 @@ function TPSThread.FileAlreadyIncluded(Sender: TObject; FileName: string): Boole
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);
Expand Down

0 comments on commit 303253a

Please sign in to comment.