Use C11's _Static_assert for COMPILE_ASSERT if it is available
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 Feb 2012 17:47:25 +0000 (17:47 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 Feb 2012 17:47:25 +0000 (17:47 +0000)
commite393333a9e8a6740f449aab19cb1f36868a43cb3
tree7031198b1adb8bdb568887fb099ccf09bd0be3ef
parenta383937d4a658eedee45c348cbb44616ded2a991
Use C11's _Static_assert for COMPILE_ASSERT if it is available
https://bugs.webkit.org/show_bug.cgi?id=78506

Rubber-stamped by Antti Koivisto.

Use C11's _Static_assert for COMPILE_ASSERT if it is available to give slightly
better error messages.

* wtf/Assertions.h:
Use _Static_assert if it is available.

* wtf/Compiler.h:
Add COMPILER_SUPPORTS support for _Static_assert when using the LLVM Compiler.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@107581 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/wtf/Assertions.h
Source/JavaScriptCore/wtf/Compiler.h