Nevermind; it seems that I need to call mb.build_code_creator(module_name)
after removing the declarations, not before.
On 2/17/07, Gustavo Carneiro <gjc...@gm...> wrote:
>
> I want to make Py++ scan a header file but ignore all declarations
> except a few handpicked ones, since most of the declarations produce
> compilation errors. I am trying this code but it doesn't seem to have any
> effect:
>
> Simulator = mb.class_('Simulator')
> for decl in Simulator.get_members():
> print decl
> Simulator.remove_declaration(decl)
>
> Any ideas?
>
> --
> Gustavo J. A. M. Carneiro
> "The universe is always one step beyond logic."
--
Gustavo J. A. M. Carneiro
"The universe is always one step beyond logic."
|