# Source code for pymunk._chipmunk_cffi

    class Mock(object):
        __package__ = 'pymunk'
        def __init__(self, *args, **kwargs):
            print("init", args, kwargs)
            pass

        def __call__(self, *args, **kwargs):
            print("call", args, kwargs)
            return Mock()

        @classmethod
        def __getattr__(cls, name):
            print("getattr", cls, name)
            if name in ('__file__', '__path__'):
                return '/dev/null'
            elif name[0] == name[0].upper():
                return type(name, (), {})
            else:
                return Mock()

    if False:
        print("api mode")
        from . import _chipmunk_cffi_api
        lib = _chipmunk_cffi_api.lib
        ffi = _chipmunk_cffi_api.ffi
    elif False:
        #print("abi mode")
        from . import _chipmunk_cffi_abi
        lib = _chipmunk_cffi_abi.lib
        ffi = _chipmunk_cffi_abi.ffi
    else:
        lib = Mock()
        ffi = Mock()