]> git.cworth.org Git - apitrace/blobdiff - specs/stdapi.py
specs: Use StdMethod accurately.
[apitrace] / specs / stdapi.py
index 8a5a5a7fa5b647f3e45a29fbe3c06db114d87b6c..846227ef3468fd2f06956476dc29d10bfd27c2b2 100644 (file)
@@ -460,7 +460,8 @@ class Interface(Type):
 
 class Method(Function):
 
-    def __init__(self, type, name, args, call = '__stdcall', const=False, sideeffects=True):
+    def __init__(self, type, name, args, call = '', const=False, sideeffects=True):
+        assert call == '__stdcall'
         Function.__init__(self, type, name, args, call = call, sideeffects=sideeffects)
         for index in range(len(self.args)):
             self.args[index].index = index + 1