Blender  V2.93
Functions
bpy_capi_utils.c File Reference
#include <Python.h>
#include "BLI_dynstr.h"
#include "BLI_listbase.h"
#include "BLI_utildefines.h"
#include "bpy_capi_utils.h"
#include "MEM_guardedalloc.h"
#include "BKE_context.h"
#include "BKE_report.h"
#include "BLT_translation.h"
#include "../generic/py_capi_utils.h"

Go to the source code of this file.

Functions

char * BPy_enum_as_string (const EnumPropertyItem *item)
 
short BPy_reports_to_error (ReportList *reports, PyObject *exception, const bool clear)
 
void BPy_reports_write_stdout (const ReportList *reports, const char *header)
 
bool BPy_errors_to_report_ex (ReportList *reports, const char *error_prefix, const bool use_full, const bool use_location)
 
bool BPy_errors_to_report (ReportList *reports)
 

Detailed Description

This file contains Blender/Python utility functions to help implementing API's. This is not related to a particular module.

Definition in file bpy_capi_utils.c.

Function Documentation

◆ BPy_enum_as_string()

char* BPy_enum_as_string ( const EnumPropertyItem item)

◆ BPy_errors_to_report()

bool BPy_errors_to_report ( ReportList reports)

◆ BPy_errors_to_report_ex()

bool BPy_errors_to_report_ex ( ReportList reports,
const char *  error_prefix,
const bool  use_full,
const bool  use_location 
)

◆ BPy_reports_to_error()

short BPy_reports_to_error ( ReportList reports,
PyObject *  exception,
const bool  clear 
)

◆ BPy_reports_write_stdout()

void BPy_reports_write_stdout ( const ReportList reports,
const char *  header 
)

A version of BKE_report_write_file_fp that uses Python's stdout.

Definition at line 80 of file bpy_capi_utils.c.

References ReportList::list, and LISTBASE_FOREACH.

Referenced by pyop_call(), and pyrna_register_class().