proxygen
|
Go to the source code of this file.
Namespaces | |
folly | |
—— Concurrent Priority Queue Implementation —— | |
folly::detail | |
Macros | |
#define | FOLLY_SAFE_CHECK_IMPL(expr, expr_s, msg) |
#define | FOLLY_SAFE_CHECK(expr, msg) FOLLY_SAFE_CHECK_IMPL((expr), (expr), (msg)) |
#define | FOLLY_SAFE_DCHECK(expr, msg) FOLLY_SAFE_CHECK_IMPL(!folly::kIsDebug || (expr), (expr), (msg)) |
Functions | |
void | folly::detail::assertionFailure (const char *expr, const char *msg, const char *file, unsigned int line, const char *function) |
#define FOLLY_SAFE_CHECK | ( | expr, | |
msg | |||
) | FOLLY_SAFE_CHECK_IMPL((expr), (expr), (msg)) |
Definition at line 35 of file SafeAssert.h.
Referenced by folly::symbolizer::ElfFile::at(), fail(), folly::symbolizer::Dwarf::findDebugInfoOffset(), folly::symbolizer::Dwarf::findLocation(), folly::symbolizer::Dwarf::getAbbreviation(), folly::symbolizer::ElfFile::getAddressValue(), folly::symbolizer::Dwarf::LineNumberVM::getFileName(), folly::symbolizer::Dwarf::LineNumberVM::getIncludeDirectory(), folly::symbolizer::ElfFile::getSectionByIndex(), folly::symbolizer::ElfFile::getString(), folly::symbolizer::Dwarf::getStringFromStringSection(), folly::symbolizer::ElfFile::getSymbolValue(), folly::detail::shared_ptr_internals::inc_shared_count(), folly::symbolizer::Dwarf::LineNumberVM::init(), folly::symbolizer::ElfFile::iterateSymbols(), folly::symbolizer::Dwarf::LineNumberVM::LineNumberVM(), folly::symbolizer::Dwarf::Section::next(), folly::symbolizer::Dwarf::LineNumberVM::nextDefineFile(), folly::symbolizer::ElfFile::openNoThrow(), folly::symbolizer::Dwarf::readAbbreviation(), folly::symbolizer::Dwarf::readAttributeValue(), folly::symbolizer::Dwarf::Section::Section(), folly::symbolizer::Dwarf::LineNumberVM::step(), succeed(), folly::symbolizer::ElfFile::validateStringTable(), folly::symbolizer::ElfFile::valueAt(), and ReadStats::writerFinished().
#define FOLLY_SAFE_CHECK_IMPL | ( | expr, | |
expr_s, | |||
msg | |||
) |
Verify that the expression is true. If not, prints an error message (containing msg) to stderr and abort()s. Just like CHECK(), but only logs to stderr and only does async-signal-safe calls.
Definition at line 27 of file SafeAssert.h.
#define FOLLY_SAFE_DCHECK | ( | expr, | |
msg | |||
) | FOLLY_SAFE_CHECK_IMPL(!folly::kIsDebug || (expr), (expr), (msg)) |
In debug mode, verify that the expression is true. Otherwise, do nothing (do not even evaluate expr). Just like DCHECK(), but only logs to stderr and only does async-signal-safe calls.
Definition at line 42 of file SafeAssert.h.
Referenced by folly::detail::atomic_notification::atomic_notify_all_impl(), folly::detail::atomic_notification::atomic_notify_one_impl(), folly::parking_lot_detail::Bucket::erase(), folly::F14VectorSet< Key, Hasher, KeyEqual, Alloc >::operator=(), folly::F14VectorMap< Key, Mapped, Hasher, KeyEqual, Alloc >::operator=(), folly::StampedPtr< T >::pack(), folly::parseLogConfig(), folly::parking_lot_detail::Bucket::push_back(), folly::LogHandlerConfig::update(), and folly::detail::LifoSemBase< BatonType, Atom >::wait().