Re: [pygccxml-development] How to scan a header file but ignore all declarations except a few ones
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2007-02-17 17:51:49
|
On 2/17/07, Gustavo Carneiro <gjc...@gm...> wrote: > Nevermind; it seems that I need to call mb.build_code_creator(module_name) > after removing the declarations, not before. This definitely could help, but better is to use include\exclude functionality of declarations: Simulator = mb.class_('Simulator') Simulator.decls().exclude() Take a look on this example: http://language-binding.net/pyplusplus/documentation/tutorials/module_builder/generate_code.py.html Also you can remove declarations, it is a bad practices. Py++ uses all declarations to verify that you create good and usable bindings. -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |