[C++-sig] [Py++] Export #define directives to ctypes

Roman Yakovenko roman.yakovenko at gmail.com
Mon Dec 28 22:50:35 CET 2009


Hi Nikolaus.

The ability to inject user code was added. The relevant commit is:
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1792&view=rev

The usage is pretty simple:

mb = ctypes_module_builder_t( ... )
#will add code to the top of the module
mb.add_module_code( "#top", tail=False )

#will add code to the bottom of the module
mb.add_module_code( "#bottom", tail=True )


Even if it doesn't solve you the current issue, it can help you with PyLint.

-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/


More information about the Cplusplus-sig mailing list