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

@@ -138,6 +138,14 @@ const char *PyC_UnicodeAsByteAndSize(PyObject *py_str, Py_ssize_t *size, PyObjec
*/
PyObject *PyC_DefaultNameSpace(const char *filename);
void PyC_RunQuicky(const char *filepath, int n, ...);
/**
* Import `imports` into `py_dict`.
*
* \param py_dict: A Python dictionary, typically used as a name-space for script execution.
* \param imports: A NULL terminated array of strings.
* \return true when all modules import without errors, otherwise return false.
* The caller is expected to handle the exception.
*/
bool PyC_NameSpace_ImportArray(PyObject *py_dict, const char *imports[]);
/**