Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
71eb744a
Commit
71eb744a
authored
Jun 28, 2012
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor doc clarification in C++ chapter
--HG-- extra : rebase_source : 410f9adcda3afa4a12bb25794f24c1fb96601608
parent
1a6fcd39
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
docs/src/userguide/wrapping_CPlusPlus.rst
docs/src/userguide/wrapping_CPlusPlus.rst
+10
-5
No files found.
docs/src/userguide/wrapping_CPlusPlus.rst
View file @
71eb744a
...
...
@@ -32,12 +32,17 @@ main new features of Cython v0.13 regarding C++ support:
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 follow
s
:
* Specify C++ language in :file:`setup.py` script
* Create ``cdef extern from`` blocks with the optional namespace (if exists) and the namespace name as string
* Declare classes as ``cdef cppclass`` blocks
* Declare public attributes (variables, methods and constructors)
* Specify C++ language in :file:`setup.py` script or locally in a source file.
* Create one or more .pxd files with ``cdef extern from`` blocks and
(if existing) the C++ namespace name. In these blocks,
* 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
==================
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment