diff options
author | John Wiegley <johnw@newartisans.com> | 2012-03-05 05:53:41 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-03-05 05:53:41 -0600 |
commit | fa3805282a7967ebd4dd26d2dc1d5cc1a3140a74 (patch) | |
tree | b629f4d14793666b3725a44f8f1014280e512f6e /src/op.cc | |
parent | 036200e959db6a3b9fe0d02f9eec3eb131983ab4 (diff) | |
download | fork-ledger-fa3805282a7967ebd4dd26d2dc1d5cc1a3140a74.tar.gz fork-ledger-fa3805282a7967ebd4dd26d2dc1d5cc1a3140a74.tar.bz2 fork-ledger-fa3805282a7967ebd4dd26d2dc1d5cc1a3140a74.zip |
Added an assert
Diffstat (limited to 'src/op.cc')
-rw-r--r-- | src/op.cc | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -89,6 +89,8 @@ expr_t::ptr_op_t expr_t::op_t::compile(scope_t& scope, const int depth) } #endif + assert(kind < LAST); + if (is_ident()) { DEBUG("expr.compile", "Lookup: " << as_ident() << " in " << scope_ptr); if (ptr_op_t def = scope_ptr->lookup(symbol_t::FUNCTION, as_ident())) { |