comparison pycall.cc @ 415:9bf8ba050122

Replace all remaining Boost.Python references * exceptions.h (pytave::error_alreadY_set): New exception placeholder class. * __py_struct_from_dict__.cc, oct-py-eval.cc, oct-py-types.cc, oct-py-util.cc, pycall.cc, pyeval.cc, pyexec.cc: Use it in place of boost::python. Remove all #includes of Boost headers.
author Mike Miller <mtmiller@octave.org>
date Wed, 03 May 2017 21:48:07 -0700
parents 3613ffbd52b2
children 24555fba9964
comparison
equal deleted inserted replaced
414:ee6afd27a78c 415:9bf8ba050122
21 */ 21 */
22 22
23 #if defined (HAVE_CONFIG_H) 23 #if defined (HAVE_CONFIG_H)
24 # include <config.h> 24 # include <config.h>
25 #endif 25 #endif
26
27 #include <boost/python.hpp>
28 26
29 #include <octave/oct.h> 27 #include <octave/oct.h>
30 #include <octave/parse.h> 28 #include <octave/parse.h>
31 29
32 #include "exceptions.h" 30 #include "exceptions.h"
121 } 119 }
122 catch (pytave::value_convert_exception const &) 120 catch (pytave::value_convert_exception const &)
123 { 121 {
124 error ("pycall: error in argument type conversion"); 122 error ("pycall: error in argument type conversion");
125 } 123 }
126 catch (boost::python::error_already_set const &) 124 catch (pytave::error_already_set const &)
127 { 125 {
128 std::string message = pytave::fetch_exception_message (); 126 std::string message = pytave::fetch_exception_message ();
129 error ("pycall: %s", message.c_str ()); 127 error ("pycall: %s", message.c_str ());
130 } 128 }
131 129