Author: Wim Lavrijsen <[email protected]>
Branch: reflex-support
Changeset: r46761:a6d679b2cdca
Date: 2011-08-23 16:32 -0700
http://bitbucket.org/pypy/pypy/changeset/a6d679b2cdca/

Log:    name fix and added assertions

diff --git a/pypy/module/cppyy/bench/hsimple.py 
b/pypy/module/cppyy/bench/hsimple.py
--- a/pypy/module/cppyy/bench/hsimple.py
+++ b/pypy/module/cppyy/bench/hsimple.py
@@ -15,7 +15,7 @@
     warnings.simplefilter("ignore")
 
     import cppyy, random
-    cppyy.load_lib('bench02Dict_reflex.so')
+    cppyy.load_reflection_info('bench02Dict_reflex.so')
 
     app      = cppyy.gbl.Bench02RootApp()
     TCanvas  = cppyy.gbl.TCanvas
diff --git a/pypy/module/cppyy/interp_cppyy.py 
b/pypy/module/cppyy/interp_cppyy.py
--- a/pypy/module/cppyy/interp_cppyy.py
+++ b/pypy/module/cppyy/interp_cppyy.py
@@ -330,6 +330,7 @@
     def __init__(self, space, name, handle):
         self.space = space
         self.name = name
+        assert lltype.typeOf(handle) == rffi.VOIDP
         self.handle = handle
         self.methods = {}
         # Do not call "self._find_methods()" here, so that a distinction can
@@ -490,6 +491,7 @@
     def __init__(self, space, name, handle):
         self.space = space
         self.name = name
+        assert lltype.typeOf(handle) == rffi.VOIDP
         self.handle = handle
 
     def __call__(self, args_w):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to