added support for --no-inline

This commit is contained in:
Nicolas Cannasse
2014-09-13 10:48:04 +02:00
parent d51995145a
commit dc36220cee
2 changed files with 7 additions and 3 deletions
+3
View File
@@ -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
View File
@@ -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 {