mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 712939 - Replace JS_STATIC_ASSERT with static_assert outside js/ directory. r=BenWa r=bsmedberg r=mccr8
This commit is contained in:
parent
790a3e8ead
commit
10a0737dbc
@ -70,7 +70,8 @@ namespace mozilla {
|
||||
namespace plugins {
|
||||
namespace parent {
|
||||
|
||||
JS_STATIC_ASSERT(sizeof(NPIdentifier) == sizeof(jsid));
|
||||
static_assert(sizeof(NPIdentifier) == sizeof(jsid),
|
||||
"NPIdentifier must be binary compatible with jsid.");
|
||||
|
||||
inline jsid
|
||||
NPIdentifierToJSId(NPIdentifier id)
|
||||
|
@ -382,7 +382,8 @@ public:
|
||||
return;
|
||||
}
|
||||
|
||||
JS_STATIC_ASSERT(sizeof(mStack[0]) == sizeof(js::ProfileEntry));
|
||||
static_assert(sizeof(mStack[0]) == sizeof(js::ProfileEntry),
|
||||
"mStack must be binary compatible with js::ProfileEntry.");
|
||||
js::SetRuntimeProfilingStack(runtime,
|
||||
(js::ProfileEntry*) mStack,
|
||||
(uint32_t*) &mStackPointer,
|
||||
|
@ -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,
|
||||
"JSTRACE_LAST enum must match trace_types count.");
|
||||
JS_snprintf(name, sizeof(name), "JS %s", trace_types[aTraceKind]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user