Răsfoiți Sursa

*** empty log message ***

Joe Shochet 25 ani în urmă
părinte
comite
9c7790cc63
1 a modificat fișierele cu 8 adăugiri și 7 ștergeri
  1. 8 7
      direct/src/ffi/FFIInterrogateDatabase.py

+ 8 - 7
direct/src/ffi/FFIInterrogateDatabase.py

@@ -72,13 +72,14 @@ def outputGlobalFileImports(file, methodList, CModuleName):
         for argType in argTypes:
             # Get the real return type (not derived)
             argType = argType.typeDescriptor.recursiveTypeDescriptor()
-            argTypeName = argType.foreignTypeName
-            # Do not put our own module in the import list
-            # Do not put modules already in the list (like a set)
-            if (not (argTypeName in moduleList)):
-                # If this is a class (not a primitive), put it on the list
-                if (argType.__class__ == FFITypes.ClassTypeDescriptor):
-                    moduleList.append(argTypeName)
+            if (not argType.isNested):
+                argTypeName = argType.foreignTypeName
+                # Do not put our own module in the import list
+                # Do not put modules already in the list (like a set)
+                if (not (argTypeName in moduleList)):
+                    # If this is a class (not a primitive), put it on the list
+                    if (argType.__class__ == FFITypes.ClassTypeDescriptor):
+                        moduleList.append(argTypeName)
 
     
     for moduleName in moduleList: