diff src/variables.h @ 10071:e42b1bbd1052

variables.cc (get_top_level_value, set_top_level_value): new functions
author John W. Eaton <jwe@octave.org>
date Thu, 07 Jan 2010 15:07:19 -0500
parents eb63fbe60fab
children cd96d29c5efa
line wrap: on
line diff
--- a/src/variables.h	Thu Jan 07 08:31:41 2010 +0100
+++ b/src/variables.h	Thu Jan 07 15:07:19 2010 -0500
@@ -78,7 +78,14 @@
 extern OCTINTERP_API octave_value
 get_global_value (const std::string& nm, bool silent = false);
 
-extern OCTINTERP_API void set_global_value (const std::string& nm, const octave_value& val);
+extern OCTINTERP_API void
+set_global_value (const std::string& nm, const octave_value& val);
+
+extern OCTINTERP_API octave_value
+get_top_level_value (const std::string& nm, bool silent = false);
+
+extern OCTINTERP_API void
+set_top_level_value (const std::string& nm, const octave_value& val);
 
 extern OCTINTERP_API octave_value
 set_internal_variable (bool& var, const octave_value_list& args,