def ExportOpaquePointerPolicies(self): # check all methods for 'return_opaque_pointer' policies methods = [x for x in self.public_members if isinstance(x, Method)] for method in methods: return_opaque_policy = return_value_policy(return_opaque_pointer) if self.info[method.name].policy == return_opaque_policy: macro = exporterutils.EspecializeTypeID(method.result.name) if macro: self.Add('declaration-outside', macro)
def ExportOpaquePointer(self, function, codeunit): if self.info.policy == return_value_policy(return_opaque_pointer): typename = function.result.name macro = exporterutils.EspecializeTypeID(typename) if macro: codeunit.Write('declaration-outside', macro)