Oops, better also note that the module initialization function must be

extern "C" for C++.
This commit is contained in:
Fred Drake 2000-05-10 20:36:34 +00:00
parent 2d54523551
commit 65e69002a2
1 changed files with 2 additions and 0 deletions

View File

@ -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