Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r1585:2b86c5dc1331 Date: 2014-12-04 19:27 +0100 http://bitbucket.org/cffi/cffi/changeset/2b86c5dc1331/
Log: Document c5c87b3b1c00 diff --git a/doc/source/index.rst b/doc/source/index.rst --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -667,6 +667,15 @@ check. Be sure to have other means of clearing the ``tmpdir`` whenever you change your sources. +.. versionadded:: 0.8.7 + You can give C++ source code in ``ffi.verify()``:: + + ext = ffi.verify(r''' + extern "C" { + int somefunc(int somearg) { return real_cpp_func(somearg); } + } + ''', source_extension='.cpp', extra_compile_args=['-std=c++11']) + This function returns a "library" object that gets closed when it goes out of scope. Make sure you keep the library object around as long as needed. _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit