Commit 71eb744a authored by Stefan Behnel's avatar Stefan Behnel

minor doc clarification in C++ chapter

--HG--
extra : rebase_source : 410f9adcda3afa4a12bb25794f24c1fb96601608
parent 1a6fcd39
...@@ -32,12 +32,17 @@ main new features of Cython v0.13 regarding C++ support: ...@@ -32,12 +32,17 @@ main new features of Cython v0.13 regarding C++ support:
Procedure Overview Procedure Overview
------------------- -------------------
The general procedure for wrapping a C++ file can now be described as follow: The general procedure for wrapping a C++ file can now be described as follows:
* Specify C++ language in :file:`setup.py` script * Specify C++ language in :file:`setup.py` script or locally in a source file.
* Create ``cdef extern from`` blocks with the optional namespace (if exists) and the namespace name as string * Create one or more .pxd files with ``cdef extern from`` blocks and
* Declare classes as ``cdef cppclass`` blocks (if existing) the C++ namespace name. In these blocks,
* Declare public attributes (variables, methods and constructors)
* declare classes as ``cdef cppclass`` blocks
* declare public names (variables, methods and constructors)
* Write an extension modules, ``cimport`` from the .pxd file and use
the declarations.
A simple Tutorial A simple Tutorial
================== ==================
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment