Re: [pygccxml-development] Test environment
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2009-11-20 19:26:13
|
2009/11/20 Roman Yakovenko <rom...@gm...>: > 2009/11/20 Michał Nowotka <mm...@gm...>: >>> If you can change code. >> I can't. > > :-( > >>> Let me know, if you need help with the second solution. >> Yes I need. > > What GCCXML version you are using? I just your example with the latest > gccxml version and it works just fine. ( On Ubuntu 9.10 ) > >> I just don't feel this solution. What value should I assign to ULONG_MAX? > > UINT_MAX :-) > >> Where actually should I redefine it and how (the compiler will yield >> at me because of redefinition)? > > http://language-binding.net/pygccxml/apidocs/parser.html > > mb = module_builder_t( gccxml_config=gccxml_configuration_t( .... ), ... ) > > gc = gccxml_configuration_t( define_symbols=["ULONG_MAX=432524"], ... ) > >> And this is just dirty hack - note that i use tester class from >> pyplusplus unittests. This first invokes gccxml and later gcc in order >> to expose some code to python. Both tools gccxml and gcc works on the >> same code and this is done automatically. Redefining some constant >> just for gccxml is problematic. > > It could be, I agree with you, but in the scenario you gave. I wanted to write "but NOT in the scenario you gave. " -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |