summaryrefslogtreecommitdiff
path: root/libsparse/sparse.cpp
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2020-01-29 21:30:48 -0800
committerChih-Hung Hsieh <chh@google.com>2020-01-30 09:39:50 -0800
commit9911e280430ace382bef85b1c8e463c17fbe0522 (patch)
treecfdec17f95290ee2698761c1ebe2ab9a4b85ed9c /libsparse/sparse.cpp
parent077839ab239f0aeae95e0b3814da70f6a0eb9699 (diff)
Allow LOG_ALWAYS_FATAL_IF in constexpr functions
* When __FAKE_USE_VA_ARGS has args that are not constexpr, reaching it in a constexpr function will be make the constexpr function invalid. To allow LOG_ALWAYS_FATAL_IF in a constexpr functions when the tested condition is false, it should call __FAKE_USE_VA_ARGS only when the tested condition is true. * Other ALOG*_IF macros are also changed to call __FAKE_USE_VA_ARGS only when the tested condition is true. Bug: 148548418 Test: WITH_TIDY=1 make Change-Id: Ie8a444dffbf9cbef78e5e0b49b44f4092bcf9982
Diffstat (limited to 'libsparse/sparse.cpp')
0 files changed, 0 insertions, 0 deletions