Mercurial > pytave
diff __py_struct_from_dict__.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 | 7864849e84c2 |
line wrap: on
line diff
--- a/__py_struct_from_dict__.cc Wed May 03 20:32:10 2017 -0700 +++ b/__py_struct_from_dict__.cc Wed May 03 21:48:07 2017 -0700 @@ -33,9 +33,6 @@ #include "oct-py-types.h" #include "oct-py-util.h" -// FIXME: only here for exception types still used in this file -#include <boost/python/errors.hpp> - DEFUN_DLD (__py_class_name__, args, , "-*- texinfo -*-\n\ @deftypefn {} {} __py_class_name__ (@var{obj})\n\ @@ -104,7 +101,7 @@ { error ("pyobject.int64: argument must be a Python int or long object"); } - catch (boost::python::error_already_set const &) + catch (pytave::error_already_set const &) { std::string message = pytave::fetch_exception_message (); error ("pyobject.int64: %s", message.c_str ()); @@ -156,7 +153,7 @@ { error ("pyobject.uint64: argument must be a Python int or long object"); } - catch (boost::python::error_already_set const &) + catch (pytave::error_already_set const &) { std::string message = pytave::fetch_exception_message (); error ("pyobject.uint64: %s", message.c_str ());