Commit e5a3d9d6 authored by Stefan Behnel's avatar Stefan Behnel

Add docs comment that "verbatim" C code is at least parsed as normal docstring.

Closes #2484.
parent fbb308c4
...@@ -355,6 +355,10 @@ It is also possible to combine a header file and verbatim C code:: ...@@ -355,6 +355,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
================================ ================================
......
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