Blender V2.61 - r43446
Functions | Variables

bpy_util.c File Reference

#include <Python.h>
#include "bpy_util.h"
#include "BLI_dynstr.h"
#include "MEM_guardedalloc.h"
#include "BKE_report.h"
#include "BKE_context.h"
#include "../generic/py_capi_utils.h"

Go to the source code of this file.

Functions

bContextBPy_GetContext (void)
void BPy_SetContext (bContext *C)
char * BPy_enum_as_string (EnumPropertyItem *item)
short BPy_reports_to_error (ReportList *reports, PyObject *exception, const short clear)
short BPy_errors_to_report (ReportList *reports)

Variables

static bContext__py_context = NULL

Detailed Description

This file contains blender/python utility functions for the api's internal use (unrelated to 'bpy.utils')

Definition in file bpy_util.c.


Function Documentation

char* BPy_enum_as_string ( EnumPropertyItem item)
short BPy_errors_to_report ( ReportList reports)
bContext* BPy_GetContext ( void  ) [read]
short BPy_reports_to_error ( ReportList reports,
PyObject *  exception,
const short  clear 
)
void BPy_SetContext ( bContext C)

Definition at line 42 of file bpy_util.c.

References C.

Referenced by bpy_context_clear(), BPY_context_set(), and bpy_context_update().


Variable Documentation

bContext* __py_context = NULL [static]

Definition at line 40 of file bpy_util.c.

Referenced by BPy_GetContext().