(self)
return "{0} = ctypes.CFUNCTYPE({1})".format(self.typename, types_decl)
Generates a ctypes.CFUNCTYPE declaration for self.
Generates a ctypes.CFUNCTYPE declaration for self.
Generates a ctypes . CFUNCTYPE declaration for self .
def ctypes_decl(self):
    """Generates a ctypes.CFUNCTYPE declaration for self."""
    types = (self.return_type,) + self.argument_types
    types_decl = ", ".join(t.arg for t in types)
    return "{0} = ctypes.CFUNCTYPE({1})".format(self.typename, types_decl)
def ctypes_decl ( self ) : types = ( self . return_type , ) + self . argument_types types_decl = ", " . join ( t . arg for t in types ) return "{0} = ctypes.CFUNCTYPE({1})" . format ( self . typename , types_decl )