Cleanup: move public doc-strings into headers for 'python'
This commit is contained in:
@@ -35,14 +35,26 @@ typedef struct {
|
||||
PyObject *Vector_CreatePyObject(const float *vec,
|
||||
const int size,
|
||||
PyTypeObject *base_type) ATTR_WARN_UNUSED_RESULT;
|
||||
/**
|
||||
* Create a vector that wraps existing memory.
|
||||
*
|
||||
* \param vec: Use this vector in-place.
|
||||
*/
|
||||
PyObject *Vector_CreatePyObject_wrap(float *vec,
|
||||
const int size,
|
||||
PyTypeObject *base_type) ATTR_WARN_UNUSED_RESULT
|
||||
ATTR_NONNULL(1);
|
||||
/**
|
||||
* Create a vector where the value is defined by registered callbacks,
|
||||
* see: #Mathutils_RegisterCallback
|
||||
*/
|
||||
PyObject *Vector_CreatePyObject_cb(PyObject *user,
|
||||
int size,
|
||||
unsigned char cb_type,
|
||||
unsigned char subtype) ATTR_WARN_UNUSED_RESULT;
|
||||
/**
|
||||
* \param vec: Initialized vector value to use in-place, allocated with #PyMem_Malloc
|
||||
*/
|
||||
PyObject *Vector_CreatePyObject_alloc(float *vec,
|
||||
const int size,
|
||||
PyTypeObject *base_type) ATTR_WARN_UNUSED_RESULT
|
||||
|
||||
Reference in New Issue
Block a user