diff src/load-path.cc @ 9458:0c7d84a65386

allow taking handles of methods with no base overload
author Jaroslav Hajek <highegg@gmail.com>
date Fri, 24 Jul 2009 08:13:20 +0200
parents 6c421f2355b5
children 3d0d2bda3a0f
line wrap: on
line diff
--- a/src/load-path.cc
+++ b/src/load-path.cc
@@ -1091,6 +1091,28 @@
   return retval;
 }
 
+bool
+load_path::do_any_class_method (const std::string& meth) const
+{
+  bool retval = false;
+
+  //  update ();
+
+  for (const_method_map_iterator q = method_map.begin ();
+       q != method_map.end (); q++)
+    {
+      const fcn_map_type& m = q->second;
+
+      if (m.find (meth) != m.end ())
+        {
+          retval = true;
+          break;
+        }
+    }
+
+  return retval;
+}
+
 std::string
 load_path::do_find_file (const std::string& file) const
 {