PyAPI: add function to check any mathutils type
[blender.git] / source / blender / python / mathutils / mathutils_Quaternion.h
index 66ee3362906d3b5401c69cce4b1f83d329a8a227..46f305b0f0ee8341120ff29b4c1e27e8549c9537 100644 (file)
@@ -28,7 +28,9 @@
  */
 
 extern PyTypeObject quaternion_Type;
  */
 
 extern PyTypeObject quaternion_Type;
-#define QuaternionObject_Check(_v) PyObject_TypeCheck((_v), &quaternion_Type)
+
+#define QuaternionObject_Check(v) PyObject_TypeCheck((v), &quaternion_Type)
+#define QuaternionObject_CheckExact(v) (Py_TYPE(v) == &quaternion_Type)
 
 typedef struct {
        BASE_MATH_MEMBERS(quat);
 
 typedef struct {
        BASE_MATH_MEMBERS(quat);