예제 #1
0
파일: executor.py 프로젝트: Darriall/pypy
 def execute(self, space, cppmethod, cpptype, num_args, args):
     from pypy.module.cppyy import interp_cppyy
     newthis = capi.c_constructor(space, cppmethod, cpptype, num_args, args)
     assert lltype.typeOf(newthis) == capi.C_OBJECT
     return space.wrap(rffi.cast(rffi.LONG, newthis))   # really want ptrdiff_t here
예제 #2
0
파일: executor.py 프로젝트: sota/pypy-old
 def execute(self, space, cppmethod, cpptype, num_args, args):
     from pypy.module.cppyy import interp_cppyy
     newthis = capi.c_constructor(space, cppmethod, cpptype, num_args, args)
     assert lltype.typeOf(newthis) == capi.C_OBJECT
     return space.wrap(rffi.cast(rffi.LONG,
                                 newthis))  # really want ptrdiff_t here
예제 #3
0
파일: executor.py 프로젝트: charred/pypy
 def execute(self, space, cppmethod, cpptype, num_args, args):
     from pypy.module.cppyy import interp_cppyy
     newthis = capi.c_constructor(space, cppmethod, cpptype, num_args, args)
     assert lltype.typeOf(newthis) == capi.C_OBJECT
     return space.wrap(newthis)
예제 #4
0
 def execute(self, space, cppmethod, cppthis, num_args, args):
     capi.c_constructor(cppmethod, cppthis, num_args, args)
     return space.w_None