diff src/ov-usr-fcn.h @ 4238:a5a68c0afe56

[project @ 2002-12-25 21:04:33 by jwe]
author jwe
date Wed, 25 Dec 2002 21:04:34 +0000
parents 23d06c9e1edd
children fc9a075d10fb
line wrap: on
line diff
--- a/src/ov-usr-fcn.h	Wed Dec 25 03:14:38 2002 +0000
+++ b/src/ov-usr-fcn.h	Wed Dec 25 21:04:34 2002 +0000
@@ -120,6 +120,10 @@
   std::string function_name (void)
     { return fcn_name; }
 
+  void mark_as_nested_function (void) { nested_function = true; }
+
+  bool is_nested_function (void) const { return nested_function; }
+
   void save_args_passed (const octave_value_list& args)
     {
       if (call_depth > 1)
@@ -211,6 +215,9 @@
   // The number of arguments that have names.
   int num_named_args;
 
+  // TRUE means this is a nested function.
+  bool nested_function;
+
   // The values that were passed as arguments.
   octave_value_list args_passed;