File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1227,10 +1227,9 @@ \section{Writing Extensions in \Cpp{}}
12271227apply. If the main program (the Python interpreter) is compiled and
12281228linked by the \C {} compiler, global or static objects with constructors
12291229cannot be used. This is not a problem if the main program is linked
1230- by the \Cpp {} compiler. All functions that will be called directly or
1231- indirectly (i.e. via function pointers) by the Python interpreter will
1232- have to be declared using \code {extern "C" }; this applies to all
1233- `` methods'' as well as to the module's initialization function.
1230+ by the \Cpp {} compiler. Functions that will be called by the
1231+ Python interpreter (in particular, module initalization functions)
1232+ have to be declared using \code {extern "C" }.
12341233It is unnecessary to enclose the Python header files in
12351234\code {extern "C" \{ ...\} } --- they use this form already if the symbol
12361235\samp {__cplusplus} is defined (all recent \Cpp {} compilers define this
Original file line number Diff line number Diff line change @@ -1227,10 +1227,9 @@ \section{Writing Extensions in \Cpp{}}
12271227apply. If the main program (the Python interpreter) is compiled and
12281228linked by the \C {} compiler, global or static objects with constructors
12291229cannot be used. This is not a problem if the main program is linked
1230- by the \Cpp {} compiler. All functions that will be called directly or
1231- indirectly (i.e. via function pointers) by the Python interpreter will
1232- have to be declared using \code {extern "C" }; this applies to all
1233- `` methods'' as well as to the module's initialization function.
1230+ by the \Cpp {} compiler. Functions that will be called by the
1231+ Python interpreter (in particular, module initalization functions)
1232+ have to be declared using \code {extern "C" }.
12341233It is unnecessary to enclose the Python header files in
12351234\code {extern "C" \{ ...\} } --- they use this form already if the symbol
12361235\samp {__cplusplus} is defined (all recent \Cpp {} compilers define this
You can’t perform that action at this time.
0 commit comments