Re: [pygccxml-development] [ANN] Py++ based ctypes code generator
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2009-01-20 20:08:49
|
On Tue, Jan 20, 2009 at 9:22 PM, Gustavo Carneiro <gjc...@gm...> wrote: > This is potentially very useful! Generated Python code can be shipped with > any project and is (almost) platform independent without need for > compilation; you just run Python code. This is my goal :-) > However I have to wonder how (if) do you support C++ calling conventions. I think, I was not clear. You can compile C code using C and/or C++ compiler. Py++ supports both modes. In the second mode the calling convention is same as in C, but name mangling is different > Things like: > - How to pass the 'this' parameter to call methods; > - Function/method overloading. > > I have followed the path of C++ code generation precisely because of the > difficulty of calling C++ code via libffi, or else I would probably have > contributed to the gobject-introspection and pybank projects. I thought > ctypes did not support C++? Just read few mails, with ctypes-cpp in the subject: http://sourceforge.net/mailarchive/forum.php?forum_name=ctypes-users and take a look on easybmp example( http://pygccxml.svn.sourceforge.net/viewvc/pygccxml/pyplusplus_dev/examples/pyeasybmp_dev/ctypes/ ) -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |