mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-07 22:44:25 +08:00
22 lines
320 B
C++
22 lines
320 B
C++
#include <boost/python.hpp>
|
|
#include "classA.h"
|
|
#include "classC.h"
|
|
|
|
namespace python = boost::python;
|
|
|
|
void testCrossA(classA *A) {
|
|
A->printA();
|
|
};
|
|
|
|
void testCrossC(classC *C) {
|
|
C->printC();
|
|
};
|
|
|
|
|
|
BOOST_PYTHON_MODULE(moduleB)
|
|
{
|
|
python::def("testCrossA", testCrossA);
|
|
python::def("testCrossC", testCrossC);
|
|
|
|
}
|