Bug 901131 - GLContext's extension group queries do a static assert on sExtensionGroupInfoArr - r=jgilbert

This commit is contained in:
Guillaume Abadie 2013-08-02 21:04:16 -04:00
parent 18a326928d
commit bf9b5060d1

View File

@ -119,7 +119,7 @@ static const ExtensionGroupInfo sExtensionGroupInfoArr[] = {
static inline const ExtensionGroupInfo&
GetExtensionGroupInfo(GLContext::GLExtensionGroup extensionGroup)
{
MOZ_ASSERT(ArrayLength(sExtensionGroupInfoArr) == size_t(GLContext::ExtensionGroup_Max),
static_assert(MOZ_ARRAY_LENGTH(sExtensionGroupInfoArr) == size_t(GLContext::ExtensionGroup_Max),
"Mismatched lengths for sExtensionGroupInfos and ExtensionGroup enums");
MOZ_ASSERT(extensionGroup < GLContext::ExtensionGroup_Max,