Blender V5.3
bpy_traceback.cc File Reference
#include <Python.h>
#include <frameobject.h>
#include "BLI_path_utils.hh"
#include "BLI_utildefines.hh"
#include "bpy_traceback.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define MAKE_PY_IDENTIFIER_EX(varname, value)
#define MAKE_PY_IDENTIFIER(varname)

Functions

 blender::MAKE_PY_IDENTIFIER (msg)
 blender::MAKE_PY_IDENTIFIER (filename)
 blender::MAKE_PY_IDENTIFIER (lineno)
 blender::MAKE_PY_IDENTIFIER (offset)
 blender::MAKE_PY_IDENTIFIER (end_lineno)
 blender::MAKE_PY_IDENTIFIER (end_offset)
 blender::MAKE_PY_IDENTIFIER (tb_lineno)
 blender::MAKE_PY_IDENTIFIER (text)
static const char * blender::traceback_filepath (PyTracebackObject *tb, PyObject **r_coerce)
static int blender::traceback_line_number (PyTracebackObject *tb)
static int blender::parse_syntax_error (PyObject *err, PyObject **message, PyObject **filename, int *lineno, int *offset, int *end_lineno, int *end_offset, PyObject **text)
bool blender::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.cc.

Macro Definition Documentation

◆ MAKE_PY_IDENTIFIER

#define MAKE_PY_IDENTIFIER ( varname)
Value:
MAKE_PY_IDENTIFIER_EX(PyId_##varname, #varname)
#define MAKE_PY_IDENTIFIER_EX(varname, value)

Definition at line 26 of file bpy_traceback.cc.

◆ MAKE_PY_IDENTIFIER_EX

#define MAKE_PY_IDENTIFIER_EX ( varname,
value )
Value:
static _Py_Identifier varname{value, -1};

Definition at line 25 of file bpy_traceback.cc.