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
+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 {