Represents an assertion failure.
More...
#include <eassert.h>
Represents an assertion failure.
◆ AssertionFailure()
cwidget::util::AssertionFailure::AssertionFailure |
( |
const std::string & |
file, |
|
|
size_t |
line, |
|
|
const std::string & |
func, |
|
|
const std::string & |
exp, |
|
|
const std::string & |
msg |
|
) |
| |
Create a new AssertionFailure.
- Parameters
-
file | The file in which the failing assertion occurred. |
line | The line on which the failing assertion occurred. |
func | The function in which the failing assertion occurred. |
exp | The failing assertion. |
msg | An extra message to include in the assertion. |
◆ get_exp()
std::string cwidget::util::AssertionFailure::get_exp |
( |
| ) |
const |
|
inline |
- Returns
- The assertion that failed.
◆ get_file()
std::string cwidget::util::AssertionFailure::get_file |
( |
| ) |
const |
|
inline |
- Returns
- The source file in which the failing assertion occurred.
◆ get_func()
std::string cwidget::util::AssertionFailure::get_func |
( |
| ) |
const |
|
inline |
- Returns
- The function in which the assertion failure occurres.
◆ get_line()
size_t cwidget::util::AssertionFailure::get_line |
( |
| ) |
const |
|
inline |
- Returns
- The source line at which the failing assertion occurred.
The documentation for this class was generated from the following files:
- src/cwidget/generic/util/eassert.h
- src/cwidget/generic/util/eassert.cc