Re: [pygccxml-development] How to make Py++ not generate code it knows won't compile
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2007-05-12 06:21:57
|
On 5/12/07, Gustavo Carneiro <gjc...@gm...> wrote: > Sometimes Py++ _knows_ a method won't compile, but tries to bind it anyway. This can be bad when you have developers adding C++ methods and not aware or not caring about Python bindings; sometimes they add methods that won't compile. >Not to mention that is a pain to have to manually exclude the methods that won't compile. Why? I think Py++ provide a convenient interface for such things. > Couldn't Py++ just not bind methods that will not compile for sure? Yes. Today every declaration has "exclude" method. I will add new argument - "declarations_that_cause_compile_time_errors_only" ( please give a better name ). You will have to set it to "True". The function will write to the log all declarations it excluded. I guess you don't want to exclude function that missing call policies, right? The way I am going to implement this is to check messages reported by "readme" method, to find all those I will define as problematic and exclude the declarations. P.S. I am a little bit busy these days, can you add new "feature request" to the project? Thanks. -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |