Esempio n. 1
0
 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
Esempio n. 2
0
 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
Esempio n. 3
0
 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)
Esempio n. 4
0
 def execute(self, space, cppmethod, cppthis, num_args, args):
     capi.c_constructor(cppmethod, cppthis, num_args, args)
     return space.w_None