Registriert seit: 20. Aug 2010
1 Beiträge
|
AW: RUTIS Engine (Scripting) [WinCE spinnt]
20. Aug 2010, 18:07
Hallo,
Meiner Deutsch ist nicht so gut, aber ich darf etwas fragen. Kannst du dieser patch anbringen?
grüße,
Raymond
Delphi-Quellcode:
Index: RUTIS_Classes.pas
===================================================================
--- RUTIS_Classes.pas (revision 23)
+++ RUTIS_Classes.pas (working copy)
@@ -134,6 +134,7 @@
//================================================
Property CompilerError : Boolean Read GetCompilerError;
Property Error : ERutisCompilerError Read fCompilerError;
+ Property ScriptError : Boolean Read fScriptError
End;
TRutisCompiler = Class
@@ -1466,7 +1467,7 @@
Begin
Result := (Address < 0) or (Address > ScriptData.Stack.Top);
If Result Then
- ScriptMessage('Address Error (Address ID = ' + IntToStr(Address) + ')');
+ ScriptMessage('Address Error (Address ID = ' + IntToStr(Address) + ')', etRuntimeError);
End;
Function TRutisEngineBase.GetStackLvlAddress(Address, Level : Integer) : Integer;
Index: Rutis_Engine.pas
===================================================================
--- Rutis_Engine.pas (revision 23)
+++ Rutis_Engine.pas (working copy)
@@ -308,7 +308,7 @@
fLastAdress := Pointer(ScriptData.Stack.ReadCardinal(src));
If GetExtAddrRange(fLastAdress) = -1 Then
Begin
- ScriptMessage('Address Error');
+ ScriptMessage('Address Error', etRuntimeError);
exit;
End;
@@ -320,7 +320,7 @@
fLastAdress := Pointer(ScriptData.Stack.ReadCardinal(ScriptData.Stack.Top - 4));
If GetExtAddrRange(fLastAdress) = -1 Then
Begin
- ScriptMessage('Address Error');
+ ScriptMessage('Address Error', etRuntimeError);
exit;
End;
End;
@@ -1088,7 +1088,7 @@
Begin
If ScriptData.CurrCmd.P1 <= 0 Then
Begin
- ScriptMessage('Error - OpEnumToSet');
+ ScriptMessage('Error - OpEnumToSet',etRuntimeError);
exit;
End;
bit := ScriptData.Stack.PopByte;
@@ -1649,7 +1649,7 @@
intDouble : Val2 := ScriptData.Stack.PopDouble;
intExtended : Val2 := ScriptData.Stack.PopExtended;
Else
- ScriptMessage('Comparison Error');
+ ScriptMessage('Comparison Error',etRuntimeError);
End;
Case TRutisIntType(ScriptData.CurrCmd.P2) Of
@@ -1669,7 +1669,7 @@
intDouble : Val1 := ScriptData.Stack.PopDouble;
intExtended : Val1 := ScriptData.Stack.PopExtended;
Else
- ScriptMessage('Comparison Error');
+ ScriptMessage('Comparison Error',etRuntimeError);
End;
Case TOperatorCode(ScriptData.CurrCmd.P1) Of
Geändert von mkinzler (20. Aug 2010 um 18:14 Uhr)
Grund: Code-Tag durch Delphi-Tag ersetzt
|
|
Zitat
|