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