SpiderMonkey has a JS_STATIC_ASSERT macro only because it's historically had 
one.  These days, C++11's static_assert keyword provides the same functionality 
more clearly and more powerfully, and it includes an explanatory reason-string 
that's displayed if the assertion fails.

If you're adding static assertions, DO use the C++11 syntax, and DO NOT use 
JS_STATIC_ASSERT.

Jeff
_______________________________________________
dev-tech-js-engine-internals mailing list
dev-tech-js-engine-internals@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals

Reply via email to