mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-22 09:12:19 -05:00
Minor changes
This commit is contained in:
parent
9d162c1bfb
commit
932f0fd8f9
@ -988,7 +988,10 @@ end;
|
|||||||
|
|
||||||
procedure TRTThread.RTOnError(s: String; ErrorType: TRutisErrorType);
|
procedure TRTThread.RTOnError(s: String; ErrorType: TRutisErrorType);
|
||||||
begin
|
begin
|
||||||
psWriteln(s);
|
if ErrorType in [etRuntimeError,etCompilerError] then
|
||||||
|
psWriteln(s)
|
||||||
|
else
|
||||||
|
writeln(s);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
constructor TRTThread.Create(CreateSuspended: Boolean; TheSyncInfo: PSyncInfo;
|
constructor TRTThread.Create(CreateSuspended: Boolean; TheSyncInfo: PSyncInfo;
|
||||||
@ -999,6 +1002,7 @@ begin
|
|||||||
RUTIS.OnWrite:= @RTOnWrite;
|
RUTIS.OnWrite:= @RTOnWrite;
|
||||||
RUTIS.OnError:= @RTOnError;
|
RUTIS.OnError:= @RTOnError;
|
||||||
RUTIS.OptProcessTimer:= false;
|
RUTIS.OptProcessTimer:= false;
|
||||||
|
RUTIS.Compiler.optArrayRangeCheck:= true;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
destructor TRTThread.Destroy;
|
destructor TRTThread.Destroy;
|
||||||
@ -1026,7 +1030,7 @@ begin
|
|||||||
RUTIS.Run;
|
RUTIS.Run;
|
||||||
end else
|
end else
|
||||||
begin
|
begin
|
||||||
CurrThread.HandleError(RUTIS.Error.ELine+1,RUTIS.Error.EChrPos,-1,RUTIS.Error.Message,errCompile,'');
|
CurrThread.HandleError(RUTIS.Error.ELine + 2,RUTIS.Error.EChrPos,-1,RUTIS.Error.Message,errCompile,'');
|
||||||
psWriteln('Compiling failed.');
|
psWriteln('Compiling failed.');
|
||||||
end;
|
end;
|
||||||
except
|
except
|
||||||
|
Loading…
Reference in New Issue
Block a user