This commit is contained in:
Behdad Esfahbod 2020-04-21 22:19:46 -07:00
parent b22f61d86a
commit bd8aa1b043
2 changed files with 3 additions and 3 deletions

View File

@ -104,7 +104,7 @@ struct NullHelper
} \ } \
}; \ }; \
namespace Namespace { \ namespace Namespace { \
static_assert (true, "Just so we take semicolon after.") static_assert (true, "") /* Require semicolon after. */
#define DEFINE_NULL_NAMESPACE_BYTES(Namespace, Type) \ #define DEFINE_NULL_NAMESPACE_BYTES(Namespace, Type) \
const unsigned char _hb_Null_##Namespace##_##Type[Namespace::Type::null_size] const unsigned char _hb_Null_##Namespace##_##Type[Namespace::Type::null_size]
@ -117,7 +117,7 @@ struct NullHelper
return _hb_Null_##Type; \ return _hb_Null_##Type; \
} \ } \
}; \ }; \
static_assert (true, "Just so we take semicolon after.") static_assert (true, "") /* Require semicolon after. */
#define DEFINE_NULL_INSTANCE(Type) \ #define DEFINE_NULL_INSTANCE(Type) \
const Type _hb_Null_##Type const Type _hb_Null_##Type

View File

@ -102,7 +102,7 @@ template <enum hb_shaper_order_t order, typename Object> struct hb_shaper_object
static void destroy (Type *p) { HB_SHAPER_DATA_DESTROY_FUNC (shaper, object) (p); } \ static void destroy (Type *p) { HB_SHAPER_DATA_DESTROY_FUNC (shaper, object) (p); } \
}; \ }; \
\ \
static_assert (true, "") /* Require semicolon. */ static_assert (true, "") /* Require semicolon after. */
template <typename Object> template <typename Object>