Merge branch 'revert-final-type-check' into 'main'

Revert "gtype: Speed up type checks for final types"

Closes #2661

See merge request GNOME/glib!2727
This commit is contained in:
Philip Withnall 2022-06-07 11:50:58 +00:00
commit 18a7b19a99

View File

@ -1464,7 +1464,7 @@ guint g_type_get_type_registration_serial (void);
G_GNUC_UNUSED static inline ModuleObjName * MODULE##_##OBJ_NAME (gpointer ptr) { \
return G_TYPE_CHECK_INSTANCE_CAST (ptr, module_obj_name##_get_type (), ModuleObjName); } \
G_GNUC_UNUSED static inline gboolean MODULE##_IS_##OBJ_NAME (gpointer ptr) { \
return ptr != NULL && G_OBJECT_TYPE (ptr) == module_obj_name##_get_type (); } \
return G_TYPE_CHECK_INSTANCE_TYPE (ptr, module_obj_name##_get_type ()); } \
G_GNUC_END_IGNORE_DEPRECATIONS
/**