diff options
author | Fred Drake <fdrake@acm.org> | 2000-05-10 20:36:34 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-05-10 20:36:34 (GMT) |
commit | 65e69002a2862cb3000610283b15954c208b7975 (patch) | |
tree | 37b463442dc2fd213473d617d501ee6946eda8d8 /Doc/ext/ext.tex | |
parent | 2d545235511d3a7e39b9a24cc67c3769acb10700 (diff) | |
download | cpython-65e69002a2862cb3000610283b15954c208b7975.zip cpython-65e69002a2862cb3000610283b15954c208b7975.tar.gz cpython-65e69002a2862cb3000610283b15954c208b7975.tar.bz2 |
Oops, better also note that the module initialization function must be
extern "C" for C++.
Diffstat (limited to 'Doc/ext/ext.tex')
-rw-r--r-- | Doc/ext/ext.tex | 2 |
1 files changed, 2 insertions, 0 deletions
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 |