libfoedus-core
FOEDUS Core Library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
assert_nd.hpp File Reference
#include <string>
#include <cassert>
Include dependency graph for assert_nd.hpp:

Go to the source code of this file.

Namespaces

 foedus
 Root package of FOEDUS (Fast Optimistic Engine for Data Unification Services).
 

Macros

#define ASSERT_QUOTE(str)   #str
 
#define ASSERT_EXPAND_AND_QUOTE(str)   ASSERT_QUOTE(str)
 
#define ASSERT_ND(x)
 A warning-free wrapper macro of assert() that has no performance effect in release mode even when 'x' is not a simple variable. More...
 
#define UNUSED_ND(var)
 Cross-compiler UNUSED macro for the same purpose as ASSERT_ND(x). More...
 

Functions

std::string foedus::print_assert (const char *file, const char *func, int line, const char *description)
 Helper function to report what assertion failed. More...
 
std::string foedus::print_backtrace ()
 Prints out backtrace. More...
 
void foedus::print_assert_backtrace (const char *file, const char *func, int line, const char *description)
 print_assert() + print_backtrace(). More...
 
std::string foedus::get_recent_assert_backtrace ()
 Retrieves the info left by print_assert_backtrace(). More...
 

Macro Definition Documentation

#define ASSERT_EXPAND_AND_QUOTE (   str)    ASSERT_QUOTE(str)

Definition at line 71 of file assert_nd.hpp.

#define ASSERT_QUOTE (   str)    #str

Definition at line 70 of file assert_nd.hpp.