From 65e69002a2862cb3000610283b15954c208b7975 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Wed, 10 May 2000 20:36:34 +0000 Subject: Oops, better also note that the module initialization function must be extern "C" for C++. --- Doc/ext/ext.tex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/ext/ext.tex b/Doc/ext/ext.tex index 532331f..683c11e 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 -- cgit v0.12