Author: Lukas Vacek <[email protected]>
Branch:
Changeset: r70371:317174d5552a
Date: 2014-03-31 21:33 +0100
http://bitbucket.org/pypy/pypy/changeset/317174d5552a/
Log: docs: embedding: Fixing simple example to include PyPy.h
diff --git a/pypy/doc/embedding.rst b/pypy/doc/embedding.rst
--- a/pypy/doc/embedding.rst
+++ b/pypy/doc/embedding.rst
@@ -76,6 +76,7 @@
.. code-block:: c
+ #include "include/PyPy.h"
#include <stdio.h>
const char source[] = "print 'hello from pypy'";
@@ -101,6 +102,9 @@
Worked!
+.. note:: If the compilation fails because of missing PyPy.h header file,
+ you are running PyPy <= 2.2.1, please see the section `Missing
PyPy.h`_.
+
Missing PyPy.h
--------------
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit