mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 17:13:40 +00:00
[sanitize] Inline check_struct
Though seems like the compiler was always inlining it anyway.
This commit is contained in:
parent
44026aa8a9
commit
25e9defa51
1 changed files with 3 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue