summaryrefslogtreecommitdiff
path: root/src/op.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2011-07-17 15:28:02 -0500
committerJohn Wiegley <johnw@newartisans.com>2011-07-17 15:28:02 -0500
commit976ba4907d6d85073bb57012eb337a3373b2e790 (patch)
tree4d740f64f04e778cdf217c318d8c5d38d8401122 /src/op.cc
parent51587d351f984661e801e35f7db4911cc22b642b (diff)
downloadfork-ledger-976ba4907d6d85073bb57012eb337a3373b2e790.tar.gz
fork-ledger-976ba4907d6d85073bb57012eb337a3373b2e790.tar.bz2
fork-ledger-976ba4907d6d85073bb57012eb337a3373b2e790.zip
O_DEFINE operator should always return NULL_VALUE
Diffstat (limited to 'src/op.cc')
-rw-r--r--src/op.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/op.cc b/src/op.cc
index f4bc28fc..3876784d 100644
--- a/src/op.cc
+++ b/src/op.cc
@@ -164,6 +164,11 @@ value_t expr_t::op_t::calc(scope_t& scope, ptr_op_t * locus, const int depth)
result = as_value();
break;
+ case O_DEFINE:
+ //result = left()->calc(scope, locus, depth + 1);
+ result = NULL_VALUE;
+ break;
+
case IDENT: {
ptr_op_t definition = left();
if (! definition) {