interp_python.hh
1 #ifndef RS274NGC_INTERP_PYTHON 2 #define RS274NGC_INTERP_PYTHON 3 #ifndef BOOST_PYTHON_NAX_ARITY 4 #define BOOST_PYTHON_MAX_ARITY 4 5 #endif 6 #include <boost/python/object.hpp> 7 struct pycontext_impl { 8 boost::python::object tupleargs; // the args tuple for Py functions 9 boost::python::object kwargs; // the args dict for Py functions 10 int py_return_type; // type of Python return value - enum retopts 11 double py_returned_double; 12 int py_returned_int; 13 // generator object next method as returned if Python function contained a yield statement 14 boost::python::object generator_next; 15 }; 16 #endif