diff src/load-path.h @ 5864:e884ab4f29ee

[project @ 2006-06-22 00:57:27 by jwe]
author jwe
date Thu, 22 Jun 2006 00:57:28 +0000
parents 07dd13bfc0ba
children b305874f50ef
line wrap: on
line diff
--- a/src/load-path.h
+++ b/src/load-path.h
@@ -104,6 +104,12 @@
       instance->do_find_fcn (fcn, OCT_FILE) : std::string ();
   }
 
+  static std::string find_mex_file (const std::string& fcn)
+  {
+    return instance_ok () ?
+      instance->do_find_fcn (fcn, MEX_FILE) : std::string ();
+  }
+
   static std::string find_file (const std::string& file)
   {
     return instance_ok ()
@@ -170,6 +176,7 @@
 
   static const int M_FILE = 1;
   static const int OCT_FILE = 2;
+  static const int MEX_FILE = 4;
 
   class dir_info
   {
@@ -302,7 +309,7 @@
   void do_update (void) const;
 
   std::string do_find_fcn (const std::string& fcn,
-			   int type = M_FILE | OCT_FILE) const;
+			   int type = M_FILE | OCT_FILE | MEX_FILE) const;
 
   std::string do_find_file (const std::string& file) const;