Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-01-17 00:38:59 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-01-17 00:38:59 +0300
commitdebb68024e0a7c5a29fa709e939cdb1a05f95f05 (patch)
treed05d23a7238bc52a60199c1966ccd784cadde8b1 /source/blender/python/generic/py_capi_utils.c
parent8ba86020cc50428f12d91846ab078ece3bf1d360 (diff)
PyAPI: add PyC_Err_SetString_Prefix for internal use
Diffstat (limited to 'source/blender/python/generic/py_capi_utils.c')
-rw-r--r--source/blender/python/generic/py_capi_utils.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/python/generic/py_capi_utils.c b/source/blender/python/generic/py_capi_utils.c
index 991a035f683..567738e6be2 100644
--- a/source/blender/python/generic/py_capi_utils.c
+++ b/source/blender/python/generic/py_capi_utils.c
@@ -455,6 +455,11 @@ PyObject *PyC_Err_Format_Prefix(PyObject *exception_type_prefix, const char *for
return NULL;
}
+PyObject *PyC_Err_SetString_Prefix(PyObject *exception_type_prefix, const char *str)
+{
+ return PyC_Err_Format_Prefix(exception_type_prefix, "%s", str);
+}
+
/**
* Use for Python callbacks run directly from C,
* when we can't use normal methods of raising exceptions.