More ancient linux compiler support

This commit is contained in:
Kovid Goyal 2019-07-25 09:39:37 +05:30
parent 6eeb85ebe6
commit 4cd004d4d9
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -15,7 +15,9 @@ pdf::podofo_set_exception(const PdfError &err) {
if (msg == NULL) msg = err.what();
std::stringstream stream;
stream << msg << "\n";
for (const PdfErrorInfo &info : err.GetCallstack()) {
const TDequeErrorInfo &s = err.GetCallstack();
for (TDequeErrorInfo::const_iterator it = s.begin(); it != s.end(); it++) {
const PdfErrorInfo &info = (*it);
stream << "File: " << info.GetFilename() << "Line: " << info.GetLine() << " " << info.GetInformation() << "\n";
}
PyErr_SetString(Error, stream.str().c_str());