Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/mathutils/mathutils_Vector.c
| Show First 20 Lines • Show All 3,036 Lines • ▼ Show 20 Lines | PyTypeObject vector_Type = { | ||||
| /* For printing, in format "<module>.<name>" */ | /* For printing, in format "<module>.<name>" */ | ||||
| "Vector", /* char *tp_name; */ | "Vector", /* char *tp_name; */ | ||||
| sizeof(VectorObject), /* int tp_basicsize; */ | sizeof(VectorObject), /* int tp_basicsize; */ | ||||
| 0, /* tp_itemsize; For allocation */ | 0, /* tp_itemsize; For allocation */ | ||||
| /* Methods to implement standard operations */ | /* Methods to implement standard operations */ | ||||
| (destructor)BaseMathObject_dealloc, /* destructor tp_dealloc; */ | (destructor)BaseMathObject_dealloc, /* destructor tp_dealloc; */ | ||||
| #if PY_VERSION_HEX >= 0x03080000 | |||||
| 0, /* tp_vectorcall_offset */ | 0, /* tp_vectorcall_offset */ | ||||
| #else | |||||
| (printfunc)NULL, /* printfunc tp_print */ | |||||
| #endif | |||||
| NULL, /* getattrfunc tp_getattr; */ | NULL, /* getattrfunc tp_getattr; */ | ||||
| NULL, /* setattrfunc tp_setattr; */ | NULL, /* setattrfunc tp_setattr; */ | ||||
| NULL, /* cmpfunc tp_compare; */ | NULL, /* cmpfunc tp_compare; */ | ||||
| (reprfunc)Vector_repr, /* reprfunc tp_repr; */ | (reprfunc)Vector_repr, /* reprfunc tp_repr; */ | ||||
| /* Method suites for standard classes */ | /* Method suites for standard classes */ | ||||
| &Vector_NumMethods, /* PyNumberMethods *tp_as_number; */ | &Vector_NumMethods, /* PyNumberMethods *tp_as_number; */ | ||||
| &Vector_SeqMethods, /* PySequenceMethods *tp_as_sequence; */ | &Vector_SeqMethods, /* PySequenceMethods *tp_as_sequence; */ | ||||
| &Vector_AsMapping, /* PyMappingMethods *tp_as_mapping; */ | &Vector_AsMapping, /* PyMappingMethods *tp_as_mapping; */ | ||||
| /* More standard operations (here for binary compatibility) */ | /* More standard operations (here for binary compatibility) */ | ||||
| (hashfunc)Vector_hash, /* hashfunc tp_hash; */ | (hashfunc)Vector_hash, /* hashfunc tp_hash; */ | ||||
| NULL, /* ternaryfunc tp_call; */ | NULL, /* ternaryfunc tp_call; */ | ||||
| #ifndef MATH_STANDALONE | #ifndef MATH_STANDALONE | ||||
| (reprfunc)Vector_str, /* reprfunc tp_str; */ | (reprfunc)Vector_str, /* reprfunc tp_str; */ | ||||
| #else | #else | ||||
| NULL, /* reprfunc tp_str; */ | NULL, /* reprfunc tp_str; */ | ||||
| #endif | #endif | ||||
| NULL, /* getattrofunc tp_getattro; */ | NULL, /* getattrofunc tp_getattro; */ | ||||
| NULL, /* setattrofunc tp_setattro; */ | NULL, /* setattrofunc tp_setattro; */ | ||||
| /* Functions to access object as input/output buffer */ | /* Functions to access object as input/output buffer */ | ||||
| NULL, /* PyBufferProcs *tp_as_buffer; */ | NULL, /* PyBufferProcs *tp_as_buffer; */ | ||||
| /*** Flags to define presence of optional/expanded features ***/ | /*** Flags to define presence of optional/expanded features ***/ | ||||
| ▲ Show 20 Lines • Show All 151 Lines • Show Last 20 Lines | |||||