[C++-sig] Way to insert code in _main.cpp in pyste
Niall Douglas
s_sourceforge at nedprod.com
Mon Sep 22 19:20:59 CEST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 20 Sep 2003 at 22:45, Nicodemus wrote:
> Must it be after BOOST_PYTHON_MODULE? If not, you can use the function
> declaration_code(<code>) in your Pyste file. To insert code inside
> BOOST_PYTHON_MODULE, use module_code().
Kinda like this:
// Exports
====================================================================void RegisterConvFXString();
void RegisterExceptionTrans();
void Export_TnFOX_Python_FXFile();
// Module
=====================================================================BOOST_PYTHON_MODULE(TnFOX)
{
RegisterConvFXString();
RegisterExceptionTrans();
Export_TnFOX_Python_FXFile();
}
BTW those two commands you suggest don't appear to have any docs.
Cheers,
Niall
-----BEGIN PGP SIGNATURE-----
Version: idw's PGP-Frontend 4.9.6.1 / 9-2003 + PGP 8.0.2
iQA/AwUBP28ve8EcvDLFGKbPEQIB8ACg+UhLP9vSvSSUfm4zQ3hSPpYgNooAoN8S
J3hcXlX2HPaE5f0fL3dYbAbP
=e8bF
-----END PGP SIGNATURE-----
More information about the Cplusplus-sig
mailing list