mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-23 17:09:27 +00:00
Revert back if statements
This commit is contained in:
parent
95eeaefd1e
commit
00e48523b2
@ -482,8 +482,8 @@ PYBIND11_NOINLINE std::string error_string(PyObject *type, PyObject *value, PyOb
|
|||||||
result += str(value).cast<std::string>();
|
result += str(value).cast<std::string>();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(PYPY_VERSION)
|
|
||||||
if (trace) {
|
if (trace) {
|
||||||
|
#if !defined(PYPY_VERSION)
|
||||||
auto *tb = (PyTracebackObject *) trace;
|
auto *tb = (PyTracebackObject *) trace;
|
||||||
|
|
||||||
// Get the deepest trace possible.
|
// Get the deepest trace possible.
|
||||||
@ -507,8 +507,8 @@ PYBIND11_NOINLINE std::string error_string(PyObject *type, PyObject *value, PyOb
|
|||||||
frame = frame->f_back;
|
frame = frame->f_back;
|
||||||
Py_DECREF(f_code);
|
Py_DECREF(f_code);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user