summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-05-10 20:36:34 +0000
committerFred Drake <fdrake@acm.org>2000-05-10 20:36:34 +0000
commitfc22183aea5f6e1857aa76d31eac20b0ae22ff1d (patch)
treefed7395d71941295b0fc8969ed213033217d6fa4 /Doc
parentca27d0adab05163cec63c8826898a12d5011fca0 (diff)
downloadcpython-fc22183aea5f6e1857aa76d31eac20b0ae22ff1d.tar.gz
Oops, better also note that the module initialization function must be
extern "C" for C++.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/ext/ext.tex2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/ext/ext.tex b/Doc/ext/ext.tex
index 532331f606..683c11e790 100644
--- a/Doc/ext/ext.tex
+++ b/Doc/ext/ext.tex
@@ -400,6 +400,8 @@ initspam()
}
\end{verbatim}
+Note that for \Cpp, this method must be declared \code{extern "C"}.
+
When the Python program imports module \module{spam} for the first
time, \cfunction{initspam()} is called. (See below for comments about
embedding Python.) It calls