[sanitize] Inline check_struct

Though seems like the compiler was always inlining it anyway.
This commit is contained in:
Behdad Esfahbod 2023-07-31 17:12:07 -06:00
parent 44026aa8a9
commit 25e9defa51

View file

@ -382,6 +382,9 @@ struct hb_sanitize_context_t :
}
template <typename Type>
#ifndef HB_OPTIMIZE_SIZE
HB_ALWAYS_INLINE
#endif
bool check_struct (const Type *obj) const
{
if (sizeof (uintptr_t) == sizeof (uint32_t))