]> granicus.if.org Git - python/commitdiff
Oops, better also note that the module initialization function must be
authorFred Drake <fdrake@acm.org>
Wed, 10 May 2000 20:36:34 +0000 (20:36 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 10 May 2000 20:36:34 +0000 (20:36 +0000)
extern "C" for C++.

Doc/ext/ext.tex

index 532331f606d90a780445e028d0d19090bc8a52a4..683c11e790c49c940b5ef611ecac455680150a6b 100644 (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