Docs: improve on doc-strings for BPY_extern_run.h

Also add ATTR_NONNULL function attributes.
This commit is contained in:
2021-12-13 13:09:14 +11:00
parent 03015a9b22
commit bc1e517bb3
3 changed files with 121 additions and 16 deletions

View File

@@ -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)
{