proxygen
SafeAssert.h File Reference

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)
 

Macro Definition Documentation

#define FOLLY_SAFE_CHECK_IMPL (   expr,
  expr_s,
  msg 
)
Value:
((expr) ? static_cast<void>(0) \
FB_STRINGIZE(expr_s), \
(msg), \
__FILE__, \
__LINE__, \
__PRETTY_FUNCTION__))
void assertionFailure(const char *expr, const char *msg, const char *file, unsigned int line, const char *function)
Definition: SafeAssert.cpp:34
#define FB_STRINGIZE(x)
Definition: Preprocessor.h:100

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.