Mercurial > octave
diff libinterp/corefcn/call-stack.cc @ 26965:be5c2a1bad93
allow dispatch class to be stored in stack frame (bug #45351)
* call-stack.h, call-stack.cc (call_stack::get_dispatch_class,
call_stack::set_dispatch_class): New methods.
* stack-frame.h (stack_frame::m_dispatch_class): New data member.
(stack_frame::get_dispatch_class, stack_frame::set_dispatch_class):
New methods.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 25 Mar 2019 16:13:01 +0000 |
parents | 6e9034836239 |
children | a1ea0e7aecde |
line wrap: on
line diff
--- a/libinterp/corefcn/call-stack.cc Mon Mar 25 10:56:14 2019 +0000 +++ b/libinterp/corefcn/call-stack.cc Mon Mar 25 16:13:01 2019 +0000 @@ -354,6 +354,16 @@ return retval; } + std::string call_stack::get_dispatch_class (void) const + { + return m_cs[m_curr_frame]->get_dispatch_class (); + } + + void call_stack::set_dispatch_class (const std::string& class_name) + { + m_cs[m_curr_frame]->set_dispatch_class (class_name); + } + bool call_stack::is_class_method_executing (std::string& dispatch_class) const { dispatch_class = "";