pstore2
Macros | Functions
assert.hpp File Reference

An implementation of the standard assert() macro with the exception that it will, on failure, dump a backtrace on platforms with the appropriate support library. More...

#include "pstore/support/portab.hpp"
Include dependency graph for assert.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PSTORE_ASSERT(expr)   ((expr) ? static_cast<void> (0) : ::pstore::assert_failed (#expr, __FILE__, __LINE__))
 

Functions

PSTORE_NO_RETURN void pstore::assert_failed (char const *str, char const *file, int line)
 

Detailed Description

An implementation of the standard assert() macro with the exception that it will, on failure, dump a backtrace on platforms with the appropriate support library.

Defines assert_failed() which is required by PSTORE_ASSERT.