added support for --no-inline
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
<build>
|
||||
<option directives="" />
|
||||
<option flashStrict="True" />
|
||||
<option noInlineOnDebug="False" />
|
||||
<option mainClass="Test" />
|
||||
<option enabledebug="False" />
|
||||
<option additional="-dce no" />
|
||||
@@ -47,6 +48,7 @@
|
||||
<hidden path="hscript9.swf" />
|
||||
<hidden path="release.bat" />
|
||||
<hidden path="release.zip" />
|
||||
<hidden path="obj" />
|
||||
</hiddenPaths>
|
||||
<!-- Executed before build -->
|
||||
<preBuildCommand />
|
||||
@@ -56,6 +58,7 @@
|
||||
<options>
|
||||
<option showHiddenPaths="False" />
|
||||
<option testMovie="Default" />
|
||||
<option testMovieCommand="" />
|
||||
</options>
|
||||
<!-- Plugin storage -->
|
||||
<storage />
|
||||
|
||||
+4
-3
@@ -148,7 +148,7 @@ class Interp {
|
||||
v = fop(arr[index],expr(e2));
|
||||
arr[index] = v;
|
||||
default:
|
||||
error(EInvalidOp(op));
|
||||
return error(EInvalidOp(op));
|
||||
}
|
||||
return v;
|
||||
}
|
||||
@@ -188,7 +188,7 @@ class Interp {
|
||||
arr[index] = v + delta;
|
||||
return v;
|
||||
default:
|
||||
error(EInvalidOp((delta > 0)?"++":"--"));
|
||||
return error(EInvalidOp((delta > 0)?"++":"--"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -242,12 +242,13 @@ class Interp {
|
||||
#end
|
||||
}
|
||||
|
||||
inline function error(e : #if hscriptPos ErrorDef #else Error #end ) {
|
||||
inline function error(e : #if hscriptPos ErrorDef #else Error #end ) : Dynamic {
|
||||
#if hscriptPos
|
||||
throw new Error(e, curExpr.pmin, curExpr.pmax);
|
||||
#else
|
||||
throw e;
|
||||
#end
|
||||
return null;
|
||||
}
|
||||
|
||||
function resolve( id : String ) : Dynamic {
|
||||
|
||||
Reference in New Issue
Block a user