Exemple #1
0
 def __init__(self, space, smartdecl, raw, deref):
     from pypy.module._cppyy.interp_cppyy import W_CPPClassDecl, get_pythonized_cppclass
     self.smartdecl = smartdecl
     w_raw   = get_pythonized_cppclass(space, raw)
     self.rawdecl   = space.interp_w(W_CPPClassDecl,
         space.findattr(w_raw, space.newtext("__cppdecl__")))
     self.deref     = deref
Exemple #2
0
 def __init__(self, space, smartdecl, raw, deref):
     # TODO: share this with SmartPointerExecutor through in mixin
     from pypy.module._cppyy.interp_cppyy import W_CPPClassDecl, get_pythonized_cppclass
     w_raw = get_pythonized_cppclass(space, raw)
     rawdecl = space.interp_w(
         W_CPPClassDecl, space.findattr(w_raw,
                                        space.newtext("__cppdecl__")))
     InstancePtrExecutor.__init__(self, space, rawdecl)
     self.smartdecl = smartdecl
     self.deref = deref