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
c332fbb3
Commit
c332fbb3
authored
Jul 10, 2018
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add docs comment that "verbatim" C code is at least parsed as normal docstring.
Closes #2484.
parent
60f4080a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
docs/src/userguide/external_C_code.rst
docs/src/userguide/external_C_code.rst
+4
-0
No files found.
docs/src/userguide/external_C_code.rst
View file @
c332fbb3
...
@@ -363,6 +363,10 @@ It is also possible to combine a header file and verbatim C code::
...
@@ -363,6 +363,10 @@ It is also possible to combine a header file and verbatim C code::
In this case, the C code ``#undef int`` is put right after
In this case, the C code ``#undef int`` is put right after
``#include "badheader.h"`` in the C code generated by Cython.
``#include "badheader.h"`` in the C code generated by Cython.
Note that the string is parsed like any other docstring in Python.
If you require character escapes to be passed into the C code file,
use a raw docstring, i.e. ``r""" ... """``.
Using Cython Declarations from C
Using Cython Declarations from C
================================
================================
...
...
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