Blender
V3.3
|
#include <Python.h>
#include <frameobject.h>
#include "BLI_path_util.h"
#include "BLI_utildefines.h"
#include "bpy_traceback.h"
Go to the source code of this file.
Functions | |
static const char * | traceback_filepath (PyTracebackObject *tb, PyObject **coerce) |
_Py_static_string (PyId_string, "<string>") | |
static int | parse_syntax_error (PyObject *err, PyObject **message, PyObject **filename, int *lineno, int *offset, int *end_lineno, int *end_offset, PyObject **text) |
bool | python_script_error_jump (const char *filepath, int *r_lineno, int *r_offset, int *r_lineno_end, int *r_offset_end) |
This file contains utility functions for getting data from a python stack trace.
Definition in file bpy_traceback.c.
_Py_static_string | ( | PyId_string | , |
"<string>" | |||
) |
|
static |
Definition at line 31 of file bpy_traceback.c.
References err, NULL, offset, and v.
Referenced by python_script_error_jump().
bool python_script_error_jump | ( | const char * | filepath, |
int * | r_lineno, | ||
int * | r_offset, | ||
int * | r_lineno_end, | ||
int * | r_offset_end | ||
) |
Definition at line 166 of file bpy_traceback.c.
References BLI_path_cmp, ELEM, NULL, parse_syntax_error(), and traceback_filepath().
Referenced by python_script_error_jump_text().
|
static |
Definition at line 21 of file bpy_traceback.c.
Referenced by python_script_error_jump().