[Pythonmac-SIG] macglue.h
Doug Wyatt
doug@sonosphere.com
Wed, 27 Oct 1999 06:07:18 -0400
I'm embedding Python in a Mac app and had to make a small tweak.
macglue.h isn't C++ aware, so I get link errors in my C++ app when
trying to link to the C functions declared in the header. Of course
#ifdef __cplusplus
extern "C" {
#endif
around the function prototypes solves everything.
Doug
who earlier spent 90 minutes learning the hard way that Py_None must
be INCREF'd before returning it from a C function :)
--
Doug Wyatt doug@sonosphere.com
http://www.sonosphere.com/