commit | 25e9defa516d63b12a659282a13dc9e1fe522cc8 | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Mon Jul 31 17:12:07 2023 -0600 |
committer | Behdad Esfahbod <behdad@behdad.org> | Mon Jul 31 17:12:07 2023 -0600 |
tree | a5a63da715a6284da365721510c9bc361385133a | |
parent | 44026aa8a992b7105a615f1fbaaf0e342b634efa [diff] |
[sanitize] Inline check_struct Though seems like the compiler was always inlining it anyway.
diff --git a/src/hb-sanitize.hh b/src/hb-sanitize.hh index 8d9ecce..efb5add 100644 --- a/src/hb-sanitize.hh +++ b/src/hb-sanitize.hh
@@ -382,6 +382,9 @@ } 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))