Blender  V3.3
Functions
bpy_traceback.c File Reference
#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)
 

Detailed Description

This file contains utility functions for getting data from a python stack trace.

Definition in file bpy_traceback.c.

Function Documentation

◆ _Py_static_string()

_Py_static_string ( PyId_string  ,
"<string>"   
)

◆ parse_syntax_error()

static int parse_syntax_error ( PyObject *  err,
PyObject **  message,
PyObject **  filename,
int *  lineno,
int *  offset,
int *  end_lineno,
int *  end_offset,
PyObject **  text 
)
static

Definition at line 31 of file bpy_traceback.c.

References err, NULL, offset, and v.

Referenced by python_script_error_jump().

◆ 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 
)

◆ traceback_filepath()

static const char* traceback_filepath ( PyTracebackObject *  tb,
PyObject **  coerce 
)
static

Definition at line 21 of file bpy_traceback.c.

Referenced by python_script_error_jump().