Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/generic/py_capi_utils.h
| Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | |||||
| int PyC_AsArray_FAST( | int PyC_AsArray_FAST( | ||||
| void *array, PyObject *value_fast, const Py_ssize_t length, | void *array, PyObject *value_fast, const Py_ssize_t length, | ||||
| const PyTypeObject *type, const bool is_double, const char *error_prefix); | const PyTypeObject *type, const bool is_double, const char *error_prefix); | ||||
| int PyC_AsArray( | int PyC_AsArray( | ||||
| void *array, PyObject *value, const Py_ssize_t length, | void *array, PyObject *value, const Py_ssize_t length, | ||||
| const PyTypeObject *type, const bool is_double, const char *error_prefix); | const PyTypeObject *type, const bool is_double, const char *error_prefix); | ||||
| PyObject *PyC_Tuple_PackArray_F32(const float *array, uint len); | PyObject *PyC_Tuple_PackArray_F32(const float *array, uint len); | ||||
| PyObject *PyC_Tuple_PackArray_F64(const double *array, uint len); | |||||
| PyObject *PyC_Tuple_PackArray_I32(const int *array, uint len); | PyObject *PyC_Tuple_PackArray_I32(const int *array, uint len); | ||||
| PyObject *PyC_Tuple_PackArray_I32FromBool(const int *array, uint len); | PyObject *PyC_Tuple_PackArray_I32FromBool(const int *array, uint len); | ||||
| PyObject *PyC_Tuple_PackArray_Bool(const bool *array, uint len); | PyObject *PyC_Tuple_PackArray_Bool(const bool *array, uint len); | ||||
| #define PyC_Tuple_Pack_F32(...) \ | #define PyC_Tuple_Pack_F32(...) \ | ||||
| PyC_Tuple_PackArray_F32(((const float []){__VA_ARGS__}), VA_NARGS_COUNT(__VA_ARGS__)) | PyC_Tuple_PackArray_F32(((const float []){__VA_ARGS__}), VA_NARGS_COUNT(__VA_ARGS__)) | ||||
| #define PyC_Tuple_Pack_F64(...) \ | |||||
| PyC_Tuple_PackArray_F64(((const double []){__VA_ARGS__}), VA_NARGS_COUNT(__VA_ARGS__)) | |||||
| #define PyC_Tuple_Pack_I32(...) \ | #define PyC_Tuple_Pack_I32(...) \ | ||||
| PyC_Tuple_PackArray_I32(((const int []){__VA_ARGS__}), VA_NARGS_COUNT(__VA_ARGS__)) | PyC_Tuple_PackArray_I32(((const int []){__VA_ARGS__}), VA_NARGS_COUNT(__VA_ARGS__)) | ||||
| #define PyC_Tuple_Pack_I32FromBool(...) \ | #define PyC_Tuple_Pack_I32FromBool(...) \ | ||||
| PyC_Tuple_PackArray_I32FromBool(((const int []){__VA_ARGS__}), VA_NARGS_COUNT(__VA_ARGS__)) | PyC_Tuple_PackArray_I32FromBool(((const int []){__VA_ARGS__}), VA_NARGS_COUNT(__VA_ARGS__)) | ||||
| #define PyC_Tuple_Pack_Bool(...) \ | #define PyC_Tuple_Pack_Bool(...) \ | ||||
| PyC_Tuple_PackArray_Bool(((const bool []){__VA_ARGS__}), VA_NARGS_COUNT(__VA_ARGS__)) | PyC_Tuple_PackArray_Bool(((const bool []){__VA_ARGS__}), VA_NARGS_COUNT(__VA_ARGS__)) | ||||
| void PyC_Tuple_Fill(PyObject *tuple, PyObject *value); | void PyC_Tuple_Fill(PyObject *tuple, PyObject *value); | ||||
| ▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines | |||||