Exemple #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
Exemple #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
Exemple #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)
Exemple #4
0
 def execute(self, space, cppmethod, cppthis, num_args, args):
     capi.c_constructor(cppmethod, cppthis, num_args, args)
     return space.w_None