mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-05 05:15:47 +00:00
Show syntax errors when editing in python script editor
This commit is contained in:
@@ -37,6 +37,12 @@ typedef struct _object PyObject;
|
||||
typedef struct _frame PyFrameObject;
|
||||
typedef struct _ts PyThreadState;
|
||||
|
||||
struct PyParseError
|
||||
{
|
||||
int lineno = -1, offset = -1;
|
||||
rdcstr errStr;
|
||||
};
|
||||
|
||||
class PythonContext : public QObject
|
||||
{
|
||||
private:
|
||||
@@ -77,6 +83,8 @@ public:
|
||||
static bool WaitForDebugger();
|
||||
static void LaunchDebugger(QWidget *window, PersistantConfig &config, QString context_location);
|
||||
|
||||
PyParseError CheckPyParse(const QByteArray &script, const rdcstr &scriptNameForErrors);
|
||||
|
||||
bool CheckInterfaces(rdcstr &log);
|
||||
|
||||
QString versionString();
|
||||
|
||||
Reference in New Issue
Block a user