Bug 695214 - Make xpidl.py enforce [retval] parameters coming last. r=khuey

This commit is contained in:
Nathan Froyd 2012-03-13 16:50:45 -04:00
parent 25126a6a12
commit 009717fc44

View File

@ -938,6 +938,8 @@ class Method(object):
self.location)
self.iface.ops['stringifier'] = self
for p in self.params:
if p.retval and p != self.params[-1]:
raise IDLError("'retval' parameter '%s' is not the last parameter" % p.name, self.location)
if p.size_is:
found_size_param = False
for size_param in self.params: