summaryrefslogtreecommitdiff
path: root/src/expr.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-08 23:56:28 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-08 23:56:28 -0400
commitfccf7e1cb5d2c0810e9b3a4c2cfb7355debbf819 (patch)
tree2704f3bfcc3c6a8b1d0ba5dc03397284f174c418 /src/expr.h
parentf50def86c4a1203837a8f97066d9d4dfd268e0f1 (diff)
downloadfork-ledger-fccf7e1cb5d2c0810e9b3a4c2cfb7355debbf819.tar.gz
fork-ledger-fccf7e1cb5d2c0810e9b3a4c2cfb7355debbf819.tar.bz2
fork-ledger-fccf7e1cb5d2c0810e9b3a4c2cfb7355debbf819.zip
Fixes to the new Python/scope integration code.
Diffstat (limited to 'src/expr.h')
-rw-r--r--src/expr.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/expr.h b/src/expr.h
index 508e521a..cebc7740 100644
--- a/src/expr.h
+++ b/src/expr.h
@@ -141,6 +141,13 @@ public:
return calc(*context);
}
+ scope_t * get_context() {
+ return context;
+ }
+ void set_context(scope_t * scope) {
+ context = scope;
+ }
+
bool is_constant() const;
bool is_function() const;