[pypy-commit] cffi cffi-1.0: complain clearly if an ffi.include() was used

arigo noreply at buildbot.pypy.org
Sun Apr 26 16:17:22 CEST 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: cffi-1.0
Changeset: r1850:87eaba8629ad
Date: 2015-04-26 16:17 +0200
http://bitbucket.org/cffi/cffi/changeset/87eaba8629ad/

Log:	complain clearly if an ffi.include() was used

diff --git a/_cffi1/recompiler.py b/_cffi1/recompiler.py
--- a/_cffi1/recompiler.py
+++ b/_cffi1/recompiler.py
@@ -8,6 +8,9 @@
     def __init__(self, ffi, module_name):
         self.ffi = ffi
         self.module_name = module_name
+        #
+        if ']' in self.ffi._cdefsources:
+            raise NotImplementedError("ffi.include()")
 
     def collect_type_table(self):
         self._typesdict = {}


More information about the pypy-commit mailing list