Commit ae39958a by Jamie Madill Committed by Commit Bot

Fix params.h compilation.

Because our ASSERT macro always references the conditional expression, not defining TypeInfo was causing a compile error on builders which had release asserts disabled. BUG=angleproject:747 BUG=chromium:716323 Change-Id: I3b5f27e39235f26b8bef5921c2d398320eb0ebaf Reviewed-on: https://chromium-review.googlesource.com/490426 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 37219c87
...@@ -56,12 +56,8 @@ class ParamTypeInfo ...@@ -56,12 +56,8 @@ class ParamTypeInfo
const ParamTypeInfo *mParentTypeInfo; const ParamTypeInfo *mParentTypeInfo;
}; };
#if defined(ANGLE_ENABLE_ASSERTS)
#define ANGLE_PARAM_TYPE_INFO(NAME, BASENAME) \ #define ANGLE_PARAM_TYPE_INFO(NAME, BASENAME) \
static constexpr ParamTypeInfo TypeInfo = {#NAME, &BASENAME::TypeInfo} static constexpr ParamTypeInfo TypeInfo = {#NAME, &BASENAME::TypeInfo}
#else
#define ANGLE_PARAM_TYPE_INFO(NAME, BASENAME)
#endif // defined(ANGLE_ENABLE_ASSERTS)
class ParamsBase : angle::NonCopyable class ParamsBase : angle::NonCopyable
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment