[C++-sig] Way to insert code in _main.cpp in pyste

Niall Douglas s_sourceforge at nedprod.com
Tue Sep 23 21:06:10 CEST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 22 Sep 2003 at 20:45, Nicodemus wrote:

> declaration_code('void Export_TnFOX_Python_FXFile();\n')
> module_code('    Export_TnFOX_Python_FXFile();\n')
> 
> But I see you want it inside _main.cpp... there's currently no way to
> do that explicitly, but you can put it inside any other Pyste file and
> the effect will be the same, since inside BOOST_PYTHON_MODULE your
> Export_MyPysteFile() will called, which will then call your
> ExportExceptionTrans(), for example. Try that and see if it works.

Hmm. Still not as nice as specifying the registrants on the command 
line when generating _main.cpp. The modules shouldn't have to worry 
about this, plus also it's likely I'll foul up not putting it into 
the first module being compiled in. I suppose I could go for a dummy 
module starting with the letter A?

Cheers,
Niall





-----BEGIN PGP SIGNATURE-----
Version: idw's PGP-Frontend 4.9.6.1 / 9-2003 + PGP 8.0.2

iQA/AwUBP3CZo8EcvDLFGKbPEQI/dgCeKJw/Io6FvLxvEpxowD6vj4pt6pYAoLQp
3q9zLJjoJsshzLuX28OD2fcO
=jMCn
-----END PGP SIGNATURE-----




More information about the Cplusplus-sig mailing list