mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Oops, better also note that the module initialization function must be
extern "C" for C++.
This commit is contained in:
parent
2d54523551
commit
65e69002a2
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue