comparison exceptions.cc @ 392:09a1acb81d8b

Delete legacy code no longer used in project * configure.ac: Drop checks for headers and functions no longer needed. * exceptions.cc, exceptions.h: Delete pytave::init_exceptions and related methods and properties for registering exceptions with Boost.Python runtime. * octave_to_python.cc, octave_to_python.h (pytave::octlist_to_pytuple): Delete. * python_to_octave.cc, python_to_octave.h (pytave::pytuple_to_octlist): Delete.
author Mike Miller <mtmiller@octave.org>
date Mon, 03 Apr 2017 13:31:00 -0700
parents d36f06f07082
children aef165ff92b0
comparison
equal deleted inserted replaced
391:70071a5512de 392:09a1acb81d8b
29 #include "oct-py-eval.h" 29 #include "oct-py-eval.h"
30 #include "oct-py-types.h" 30 #include "oct-py-types.h"
31 31
32 namespace pytave 32 namespace pytave
33 { 33 {
34
35 PyObject *octave_error_exception::excclass = 0;
36 PyObject *value_convert_exception::excclass = 0;
37 PyObject *object_convert_exception::excclass = 0;
38 PyObject *octave_parse_exception::excclass = 0;
39 PyObject *variable_name_exception::excclass = 0;
40
41 bool init_exceptions (void)
42 {
43 return (octave_error_exception::init ()
44 && value_convert_exception::init ()
45 && object_convert_exception::init ()
46 && octave_parse_exception::init ()
47 && variable_name_exception::init ());
48 }
49
50 std::string fetch_exception_message (void) 34 std::string fetch_exception_message (void)
51 { 35 {
52 PyObject *ptype, *pvalue, *ptraceback; 36 PyObject *ptype, *pvalue, *ptraceback;
53 PyErr_Fetch (&ptype, &pvalue, &ptraceback); 37 PyErr_Fetch (&ptype, &pvalue, &ptraceback);
54 PyErr_NormalizeException (&ptype, &pvalue, &ptraceback); 38 PyErr_NormalizeException (&ptype, &pvalue, &ptraceback);