Commit 65e69002 authored by Fred Drake's avatar Fred Drake

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

extern "C" for C++.
parent 2d545235
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment