示例#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