comparison oct-py-util.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 3644df6564bc
children 24555fba9964
comparison
equal deleted inserted replaced
414:ee6afd27a78c 415:9bf8ba050122
25 #endif 25 #endif
26 26
27 #include <oct.h> 27 #include <oct.h>
28 #include <octave/parse.h> 28 #include <octave/parse.h>
29 29
30 #include "exceptions.h"
30 #include "oct-py-object.h" 31 #include "oct-py-object.h"
31 #include "oct-py-types.h" 32 #include "oct-py-types.h"
32 #include "oct-py-util.h" 33 #include "oct-py-util.h"
33
34 // FIXME: only here for boost::python::error_already_set
35 #include <boost/python.hpp>
36 34
37 namespace pytave 35 namespace pytave
38 { 36 {
39 37
40 inline std::string 38 inline std::string
171 if (dict && ns) 169 if (dict && ns)
172 PyDict_SetItemString (ns, "_in_octave", dict); 170 PyDict_SetItemString (ns, "_in_octave", dict);
173 } 171 }
174 172
175 if (! dict) 173 if (! dict)
176 throw boost::python::error_already_set (); 174 throw pytave::error_already_set ();
177 175
178 objstore = dict; 176 objstore = dict;
179 } 177 }
180 return objstore; 178 return objstore;
181 } 179 }