+# Add a manual routine for converting integer WindowPtr's (as returned by
+# various event routines) to a WindowObject.
+if ( !PyArg_ParseTuple(_args, "i", &ptr) )
+f = ManualGenerator("WhichWindow", whichwin_body)
+f.docstring = lambda : "Resolve an integer WindowPtr address to a Window object"
# add the populated lists to the generator groups
# (in a different wordl the scan program would generate this)
for f in functions: module.add(f)
for f in methods: object.add(f)
# generate output (open the output file as late as possible)