diff oct-py-eval.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
line wrap: on
line diff
--- a/oct-py-eval.cc	Wed May 03 20:32:10 2017 -0700
+++ b/oct-py-eval.cc	Wed May 03 21:48:07 2017 -0700
@@ -25,10 +25,10 @@
 #endif
 
 #include <string>
-#include <boost/python.hpp>
 #include <octave/ov.h>
 #include <octave/ovl.h>
 
+#include "exceptions.h"
 #include "oct-py-eval.h"
 #include "oct-py-object.h"
 #include "oct-py-util.h"
@@ -83,7 +83,7 @@
   {
     python_object retval = PyEval_CallObjectWithKeywords (callable, args, kwargs);
     if (! retval)
-      throw boost::python::error_already_set ();
+      throw pytave::error_already_set ();
 
     return retval.release ();
   }
@@ -118,7 +118,7 @@
       Py_DECREF (globals);
 
     if (! retval)
-      throw boost::python::error_already_set ();
+      throw pytave::error_already_set ();
 
     return retval.release ();
   }