mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-21 16:55:01 -05:00
Simba: Attempt to fix include_once behaviour.
This commit is contained in:
parent
31df8c695a
commit
303253aeed
@ -26,6 +26,8 @@
|
|||||||
// See Units/Linux/keybinder.pas
|
// See Units/Linux/keybinder.pas
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|
||||||
|
//{$DEFINE SIMBA_VERBOSE} // For more verbosity.
|
||||||
|
|
||||||
//{$DEFINE USE_RUTIS}
|
//{$DEFINE USE_RUTIS}
|
||||||
|
|
||||||
//{$DEFINE USE_CPASCAL} // TODO
|
//{$DEFINE USE_CPASCAL} // TODO
|
||||||
|
@ -746,11 +746,15 @@ begin
|
|||||||
if (path <> '') then
|
if (path <> '') then
|
||||||
if Includes.Find(path,i) then
|
if Includes.Find(path,i) then
|
||||||
begin
|
begin
|
||||||
psWriteln('Include_Once file already included');
|
{$IFDEF SIMBA_VERBOSE}
|
||||||
Result := False;
|
psWriteln('Include_Once file already included:' + Path);
|
||||||
end;
|
{$ENDIF}
|
||||||
Includes.Add(path);
|
|
||||||
Result := True;
|
Result := True;
|
||||||
|
Exit;
|
||||||
|
end;
|
||||||
|
|
||||||
|
Includes.Add(path);
|
||||||
|
Result := False;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure SIRegister_Mufasa(cl: TPSPascalCompiler);
|
procedure SIRegister_Mufasa(cl: TPSPascalCompiler);
|
||||||
|
Loading…
Reference in New Issue
Block a user