Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 65e6900

Browse files
committed
Oops, better also note that the module initialization function must be
extern "C" for C++.
1 parent 2d54523 commit 65e6900

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Doc/ext/ext.tex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,8 @@ \section{The Module's Method Table and Initialization Function
400400
}
401401
\end{verbatim}
402402

403+
Note that for \Cpp, this method must be declared \code{extern "C"}.
404+
403405
When the Python program imports module \module{spam} for the first
404406
time, \cfunction{initspam()} is called. (See below for comments about
405407
embedding Python.) It calls

0 commit comments

Comments
 (0)