Esempio n. 1
0
 def execute(self, space, cppmethod, cppthis, num_args, args):
     from pypy.module.cppyy import interp_cppyy
     voidp_result = capi.c_call_r(cppmethod, cppthis, num_args, args)
     ref_address = rffi.cast(rffi.VOIDPP, voidp_result)
     ptr_result = rffi.cast(capi.C_OBJECT, ref_address[0])
     return interp_cppyy.wrap_cppobject(
         space, space.w_None, self.cppclass, ptr_result, isref=False, python_owns=False)
Esempio n. 2
0
 def execute(self, space, cppmethod, cppthis, num_args, args):
     result = capi.c_call_r(space, cppmethod, cppthis, num_args, args)
     return self._wrap_reference(space, rffi.cast(self.c_ptrtype, result))
Esempio n. 3
0
 def execute(self, space, cppmethod, cppthis, num_args, args):
     from pypy.module.cppyy import interp_cppyy
     voidp_result = capi.c_call_r(space, cppmethod, cppthis, num_args, args)
     ref_address = rffi.cast(rffi.VOIDPP, voidp_result)
     ptr_result = rffi.cast(capi.C_OBJECT, ref_address[0])
     return interp_cppyy.wrap_cppobject(space, ptr_result, self.cppclass)
Esempio n. 4
0
 def execute(self, space, cppmethod, cppthis, num_args, args):
     result = capi.c_call_r(space, cppmethod, cppthis, num_args, args)
     return self._wrap_reference(space, rffi.cast(self.c_ptrtype, result))
Esempio n. 5
0
 def execute(self, space, cppmethod, cppthis, num_args, args):
     result = capi.c_call_r(cppmethod, cppthis, num_args, args)
     return self._wrap_result(space, result)