Bug 712939 - Replace JS_STATIC_ASSERT with static_assert outside js/ directory. r=mccr8
This commit is contained in:
@@ -549,7 +549,8 @@ CycleCollectedJSRuntime::DescribeGCThing(bool aIsMarked, void* aThing,
|
||||
"BaseShape",
|
||||
"TypeObject",
|
||||
};
|
||||
JS_STATIC_ASSERT(MOZ_ARRAY_LENGTH(trace_types) == JSTRACE_LAST + 1);
|
||||
static_assert(MOZ_ARRAY_LENGTH(trace_types) == JSTRACE_LAST + 1,
|
||||
"Length of trace_types should match the number of cases of JSGCTraceKind.");
|
||||
JS_snprintf(name, sizeof(name), "JS %s", trace_types[aTraceKind]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user