Commit 6b6f7f19 authored by peastman's avatar peastman
Browse files

Fixed segfaults caused by errors in Fortran wrapper generation

parent b2caf6cc
......@@ -1134,14 +1134,14 @@ class FortranSourceGenerator(WrapperGenerator):
return type
def isHandleType(self, type):
if type.startswith('OpenMM_'):
return True;
if type == 'Vec3':
return True
if type == 'OpenMM_Vec3':
return False
if type.endswith('*') or type.endswith('&'):
return self.isHandleType(type[:-1].strip())
if type.startswith('const '):
return self.isHandleType(type[6:].strip())
if type.startswith('OpenMM_'):
return True;
return False
def writeOutput(self):
......
......@@ -1665,14 +1665,14 @@ class FortranSourceGenerator(WrapperGenerator):
return type
def isHandleType(self, type):
if type.startswith('OpenMM_'):
return True;
if type == 'Vec3':
return True
if type == 'OpenMM_Vec3':
return False
if type.endswith('*') or type.endswith('&'):
return self.isHandleType(type[:-1].strip())
if type.startswith('const '):
return self.isHandleType(type[6:].strip())
if type.startswith('OpenMM_'):
return True;
return False
def writeOutput(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment