PyAPI: add function to check any mathutils type
[blender.git] / source / blender / python / mathutils / mathutils_Euler.h
index 744f39faed1fe9ae5dc1eae5b4040e483763dd34..4f5ba76b8dfb245de485a503a604f1234cf0437c 100644 (file)
@@ -29,7 +29,8 @@
  */
 
 extern PyTypeObject euler_Type;
-#define EulerObject_Check(_v) PyObject_TypeCheck((_v), &euler_Type)
+#define EulerObject_Check(v) PyObject_TypeCheck((v), &euler_Type)
+#define EulerObject_CheckExact(v) (Py_TYPE(v) == &euler_Type)
 
 typedef struct {
        BASE_MATH_MEMBERS(eul);