mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Fix exception fetching and passing through signals
This commit is contained in:
@@ -133,7 +133,7 @@ static PyMethodDef OutputRedirector_methods[] = {
|
||||
|
||||
PyObject *PythonContext::main_dict = NULL;
|
||||
|
||||
void FetchException(QString &typeStr, QString &valueStr, QList<QString> frames)
|
||||
void FetchException(QString &typeStr, QString &valueStr, QList<QString> &frames)
|
||||
{
|
||||
PyObject *exObj = NULL, *valueObj = NULL, *tracebackObj = NULL;
|
||||
|
||||
@@ -200,6 +200,9 @@ void PythonContext::GlobalInit()
|
||||
return;
|
||||
}
|
||||
|
||||
// for the exception signal
|
||||
qRegisterMetaType<QList<QString>>("QList<QString>");
|
||||
|
||||
PyImport_AppendInittab("_renderdoc", &PyInit__renderdoc);
|
||||
PyImport_AppendInittab("_qrenderdoc", &PyInit__qrenderdoc);
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ public:
|
||||
int currentLine() { return location.line; }
|
||||
signals:
|
||||
void traceLine(const QString &file, int line);
|
||||
void exception(const QString &type, const QString &value, const QList<QString> &frames);
|
||||
void exception(const QString &type, const QString &value, QList<QString> frames);
|
||||
void textOutput(bool isStdError, const QString &output);
|
||||
|
||||
public slots:
|
||||
|
||||
Reference in New Issue
Block a user