[pypy-svn] r48850 - pypy/branch/new-genc-tests-wrapper/pypy/translator/llsupport

cfbolz at codespeak.net cfbolz at codespeak.net
Tue Nov 20 17:38:38 CET 2007


Author: cfbolz
Date: Tue Nov 20 17:38:37 2007
New Revision: 48850

Modified:
   pypy/branch/new-genc-tests-wrapper/pypy/translator/llsupport/modwrapper.py
Log:
(cfbolz, rxe): this is only there if we are running with Boehm GC.


Modified: pypy/branch/new-genc-tests-wrapper/pypy/translator/llsupport/modwrapper.py
==============================================================================
--- pypy/branch/new-genc-tests-wrapper/pypy/translator/llsupport/modwrapper.py	(original)
+++ pypy/branch/new-genc-tests-wrapper/pypy/translator/llsupport/modwrapper.py	Tue Nov 20 17:38:37 2007
@@ -22,9 +22,13 @@
 rpyexc_fetch_type.argtypes = []
 rpyexc_fetch_type.restype = ctypes.c_void_p
 
-GC_get_heap_size_wrapper = _c.GC_get_heap_size
-GC_get_heap_size_wrapper.argtypes = []
-GC_get_heap_size_wrapper.restype = ctypes.c_int
+try:
+    GC_get_heap_size_wrapper = _c.GC_get_heap_size
+    GC_get_heap_size_wrapper.argtypes = []
+    GC_get_heap_size_wrapper.restype = ctypes.c_int
+except AttributeError:
+    pass # only if there is Boehm
+
 
 startup_code = _c.ctypes_RPython_StartupCode
 startup_code.argtypes = []



More information about the Pypy-commit mailing list