diff options
| author | Fred Drake <fdrake@acm.org> | 2000-05-10 20:36:34 +0000 |
|---|---|---|
| committer | Fred Drake <fdrake@acm.org> | 2000-05-10 20:36:34 +0000 |
| commit | fc22183aea5f6e1857aa76d31eac20b0ae22ff1d (patch) | |
| tree | fed7395d71941295b0fc8969ed213033217d6fa4 /Doc | |
| parent | ca27d0adab05163cec63c8826898a12d5011fca0 (diff) | |
| download | cpython-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.tex | 2 |
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 |
