On Wed, Oct 28, 2009 at 12:18 PM, Berserker <ber...@ho...> wrote:
> Hi, I'm continuing my "embedding experience" with Python and Py++
> but I'm not able to add custom code in static member functions.
> Actually I'm calling:
>
> mfuns = my_module.mem_funs()
> mfuns.add_default_precall_code("// my code")
>
> (this works fine for all non static methods)
> Any suggestion?
Well, the required functionality is not implemented. The way to solve
this problem is to create function transformation.
> Another problem is that free_function_t doesn't
> support add_default_precall_code.
The reason is similar: static member functions and free functions
doesn't need additional wrappers.
I believe, the right way, to add such functionality is to create
custom function transformation. It should not be too difficult.
> I'd like to contribute in the documentation for embedding Python
> with Py++ but I'm very busy in these days. Would be helpful if
> I release all the sources of my Python plugin (with Py++ scripts)?
> They will not compile "standalone" but I think it would be easy
> to document the embedding issues with them.
In my opinion - it could be useful. If you submit, will I have
permissions to change the code, and break it to smaller, self
contained parts?
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
|