[pypy-commit] pypy default: docs: embedding: Fixing simple example to include PyPy.h

vlukas noreply at buildbot.pypy.org
Tue Apr 1 09:26:31 CEST 2014


Author: Lukas Vacek <lucas.vacek at gmail.com>
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
 --------------
 


More information about the pypy-commit mailing list