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>2021-12-13 05:09:14 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-12-13 05:12:09 +0300
commitbc1e517bb378dc71fe9c45386e72dbbbe852284b (patch)
treec9292f5673bc418f0da93df6946ff8a5f109768f /source/blender/python/intern
parent03015a9b222e29e894fe7ce0da059094a8fee9ce (diff)
Docs: improve on doc-strings for BPY_extern_run.h
Also add ATTR_NONNULL function attributes.
Diffstat (limited to 'source/blender/python/intern')
-rw-r--r--source/blender/python/intern/bpy_interface_run.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_interface_run.c b/source/blender/python/intern/bpy_interface_run.c
index e9e5e9634d6..a4d54a4ce83 100644
--- a/source/blender/python/intern/bpy_interface_run.c
+++ b/source/blender/python/intern/bpy_interface_run.c
@@ -80,6 +80,14 @@ typedef struct {
} PyModuleObject;
#endif
+/**
+ * Execute a file-path or text-block.
+ *
+ * \param reports: Report exceptions as errors (may be NULL).
+ * \param do_jump: See #BPY_run_text.
+ *
+ * \note Share a function for this since setup/cleanup logic is the same.
+ */
static bool python_script_exec(
bContext *C, const char *fn, struct Text *text, struct ReportList *reports, const bool do_jump)
{