diff options
author | Lars Knoll <lars.knoll@digia.com> | 2012-11-18 23:33:06 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-11-19 10:33:35 +0100 |
commit | a2676884804fb523ee586f1ebc6a11353ec79fcb (patch) | |
tree | 485f9b97affb19a3a24c914f83159765d74b9f55 /main.cpp | |
parent | 4f1dfd1e260c238a0f8b1e3c7338431fa2972b90 (diff) |
Better handling of contexts and environments
Make the ExecutionContext standard compliant.
Move most of it's members into a new
DeclarativeEnvironment data structure that
contains locals and arguments.
Change-Id: I094f559168810dbd3717d677fe28750076015976
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -71,7 +71,7 @@ struct Print: FunctionObject virtual void call(ExecutionContext *ctx) { - for (unsigned int i = 0; i < ctx->argumentCount; ++i) { + for (unsigned int i = 0; i < ctx->argumentCount(); ++i) { String *s = ctx->argument(i).toString(ctx); if (i) std::cout << ' '; @@ -89,7 +89,7 @@ struct TestHarnessError: FunctionObject { errorOccurred = true; - for (unsigned int i = 0; i < ctx->argumentCount; ++i) { + for (unsigned int i = 0; i < ctx->argumentCount(); ++i) { String *s = ctx->argument(i).toString(ctx); if (i) std::cerr << ' '; |