Mercurial > hg > octave-nkf
diff src/variables.cc @ 10444:537d9fbba9c0
don't call missing_function_hook inside try block
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Wed, 24 Mar 2010 13:10:36 +0100 |
parents | 34e51d4e199b |
children | 13c1f15c67fa |
line wrap: on
line diff
--- a/src/variables.cc +++ b/src/variables.cc @@ -2392,6 +2392,7 @@ void maybe_missing_function_hook (const std::string& name) { - if (! Vmissing_function_hook.empty ()) + // Don't do this if we're handling errors. + if (buffer_error_messages == 0 && ! Vmissing_function_hook.empty ()) feval (Vmissing_function_hook, octave_value (name)); }