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
Kirill Smelkov
cython
Commits
da97e28d
Commit
da97e28d
authored
Jul 26, 2012
by
Eric Chlebek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update docs/src/userguide/external_C_code.rst
parent
c48630b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
docs/src/userguide/external_C_code.rst
docs/src/userguide/external_C_code.rst
+2
-2
No files found.
docs/src/userguide/external_C_code.rst
View file @
da97e28d
...
@@ -320,8 +320,8 @@ If there are any public declarations in a Cython module, a header file called
...
@@ -320,8 +320,8 @@ If there are any public declarations in a Cython module, a header file called
:file:`modulename.h` file is generated containing equivalent C declarations for
:file:`modulename.h` file is generated containing equivalent C declarations for
inclusion in other C code.
inclusion in other C code.
When including the :file:`modulename.h` file and using functions declared in it, you must
Users who are embedding Python in C with Cython need to make sure to call Py_Initialize()
call Py_Initialize() and Py_Finalize() if you are interacting with any Python functions
::
and Py_Finalize(). For example, in the following snippet that includes :file:`modulename.h`
::
#include <Python.h>
#include <Python.h>
#include "modulename.h"
#include "modulename.h"
...
...
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