Browse Source

filter out .mm files

David Rose 16 years ago
parent
commit
25241ed6e9
1 changed files with 5 additions and 0 deletions
  1. 5 0
      dtool/src/interrogate/interrogateBuilder.cxx

+ 5 - 0
dtool/src/interrogate/interrogateBuilder.cxx

@@ -947,6 +947,11 @@ should_include(const string &filename) const {
     return false;
   }
 
+  // Ignore Objective-C files too.
+  if (filename.length() > 3 && filename.substr(filename.length() - 3) == ".mm") {
+    return false;
+  }
+
   // Otherwise, no problem.
   return true;
 }