Author: Armin Rigo <[email protected]>
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 = {}
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to