Mercurial > hg > octave-lyh
diff src/toplev.h @ 9144:c6463412aebb
eliminate symbol_table::scope_stack; fix scoping issue with evalin
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 21 Apr 2009 15:39:57 -0400 |
parents | eb63fbe60fab |
children | ee7cf4d963f3 |
line wrap: on
line diff
--- a/src/toplev.h +++ b/src/toplev.h @@ -205,6 +205,14 @@ instance->do_push (f, scope, context); } + static void + push (symbol_table::scope_id scope = symbol_table::current_scope (), + symbol_table::context_id context = symbol_table::current_context ()) + { + if (instance_ok ()) + instance->do_push (0, scope, context); + } + static octave_function *top (void) { return instance_ok () ? instance->do_top (): 0;