diff libinterp/corefcn/interpreter-private.h @ 23609:99989ab8f142

new convenience functions for accessing current scope * interpreter.h, interpreter.cc (interpreter::get_current_scope, interpreter::require_current_scope): New functions. * interpreter-private.h, interpreter-private.cc (__get_current_scope__): Use interpreter::get_current_scope. (__require_current_scope__): New fucntion.
author John W. Eaton <jwe@octave.org>
date Thu, 15 Jun 2017 08:00:37 -0400
parents 214cb58ccc1c
children 0a6e87804cab
line wrap: on
line diff
--- a/libinterp/corefcn/interpreter-private.h	Thu Jun 15 16:13:49 2017 -0700
+++ b/libinterp/corefcn/interpreter-private.h	Thu Jun 15 08:00:37 2017 -0400
@@ -44,6 +44,9 @@
 
   extern symbol_table::scope *__get_current_scope__ (const std::string& who);
 
+  extern symbol_table::scope *
+  __require_current_scope__ (const std::string& who);
+
   extern tree_evaluator& __get_evaluator__ (const std::string& who);
 
   extern call_stack& __get_call_stack__ (const std::string& who);