22 #ifndef MEDIASTATION_MEDIASCRIPT_CODECHUNK_H 23 #define MEDIASTATION_MEDIASCRIPT_CODECHUNK_H 25 #include "common/array.h" 27 #include "mediastation/datafile.h" 28 #include "mediastation/mediascript/scriptvalue.h" 29 #include "mediastation/mediascript/scriptconstants.h" 45 ScriptValue evaluateExpression(ExpressionType expressionType);
53 void evaluateIfElse();
57 ScriptValue evaluateFunctionCall(
bool isIndirect =
false);
58 ScriptValue evaluateFunctionCall(uint functionId, uint paramCount);
59 ScriptValue evaluateMethodCall(
bool isIndirect =
false);
60 ScriptValue evaluateMethodCall(BuiltInMethod method, uint paramCount);
61 void evaluateDeclareLocals();
63 void evaluateReturnNoValue();
64 void evaluateWhileLoop();
66 static const uint MAX_LOOP_ITERATION_COUNT = 1000;
67 bool _returnImmediately =
false;