Mercurial > octave
changeset 32143:9af044b8e228
new function to access number of symbols in function or script scope
* ov-usr-fcn.h (octave_user_function::scope_num_symbols):
New convenience function.
author | Petter T. <petter.vilhelm@gmail.com> |
---|---|
date | Mon, 19 Jun 2023 14:14:26 -0400 |
parents | 53ba75432f02 |
children | a36ba266f4eb |
files | libinterp/octave-value/ov-usr-fcn.h |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-usr-fcn.h Mon Jun 19 13:27:42 2023 -0400 +++ b/libinterp/octave-value/ov-usr-fcn.h Mon Jun 19 14:14:26 2023 -0400 @@ -89,6 +89,8 @@ octave::symbol_scope scope () { return m_scope; } + std::size_t scope_num_symbols () { return m_scope.num_symbols (); } + void stash_fcn_file_name (const std::string& nm) { m_file_name = nm; } void mark_fcn_file_up_to_date (const octave::sys::time& t)