Implement logging for RELEASE_BASSERT_WITH_MESSAGE() in BAssert.h
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 11 Jun 2016 11:46:19 +0000 (11:46 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 11 Jun 2016 11:46:19 +0000 (11:46 +0000)
commit23d0b2d9aba40ef32e37f0c020c4a74503382713
tree02a5d9ba0ae3948ed46d12f730c2e2852d3188c5
parent7b884e486b62779fb1b8cb972ac5a987867a7a7b
Implement logging for RELEASE_BASSERT_WITH_MESSAGE() in BAssert.h
<http://webkit.org/b/155992>

Reviewed by Geoff Garen.

* bmalloc/BAssert.h:
(BLOG_ERROR): Add method to always log error messages.
(RELEASE_BASSERT_WITH_MESSAGE): Use BLOG_ERROR() to implement
logging in Debug builds.
* bmalloc/BPlatform.h:
(BPLATFORM_MAC): Add.
(BUSE): Add BUSE() macro.
(BATTRIBUTE_PRINTF): Add.
(BUSE_OS_LOG): Add.
* bmalloc/Logging.cpp:
(bmalloc::reportAssertionFailureWithMessage): Add.  Logs to
stderr.
* bmalloc/Logging.h:
(bmalloc::reportAssertionFailureWithMessage): Add declaration.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@201969 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/bmalloc/ChangeLog
Source/bmalloc/bmalloc/BAssert.h
Source/bmalloc/bmalloc/BPlatform.h
Source/bmalloc/bmalloc/Logging.cpp
Source/bmalloc/bmalloc/Logging.h