[pypy-commit] cffi default: Document c5c87b3b1c00

arigo noreply at buildbot.pypy.org
Thu Dec 4 19:27:09 CET 2014


Author: Armin Rigo <arigo at 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.


More information about the pypy-commit mailing list