author Gustavo J. A. M. Carneiro <>
Fri, 29 Aug 2008 14:56:24 +0100
changeset 3567 728eb3f583b3
parent 3408 2cc40b3e4fa5
permissions -rw-r--r--
Require new PyBindGen (now ignores the badly scanned anonymous containers that cause problems on cygwin) and rescan API.

from pybindgen import Module, FileCodeSink, write_preamble, param, retval

def register_types(module):
def register_methods(root_module):
    MyClass = root_module['MyClass']
    MyClass.add_constructor([], visibility='public')
    MyClass.add_constructor([param('double', 's'), param('double', 'l'), param('double', 'mean')], visibility='public')

def register_functions(module):
    module.add_function('SomeFunction', 'int', [param('int', 'xpto')])