ZeroErr
Loading...
Searching...
No Matches
zeroerr::AssertionData Struct Reference

AssertionData is a struct that contains all the information of an assertion. It will be thrown as an exception when the assertion failed. More...

#include <assert.h>

Inheritance diagram for zeroerr::AssertionData:
Collaboration diagram for zeroerr::AssertionData:

Public Member Functions

 AssertionData (const char *file, unsigned line, const char *cond, assert_info info)
void setResult (ExprResult &&result)
void setException (const std::exception &e)
zeroerr::String log ()
void operator() ()
bool shouldThrow ()

Public Attributes

const char * file
unsigned line
assert_info info
bool passed
zeroerr::String message
zeroerr::String cond

Detailed Description

AssertionData is a struct that contains all the information of an assertion. It will be thrown as an exception when the assertion failed.

Constructor & Destructor Documentation

◆ AssertionData()

zeroerr::AssertionData::AssertionData ( const char * file,
unsigned line,
const char * cond,
assert_info info )
inline

Member Function Documentation

◆ log()

zeroerr::String zeroerr::AssertionData::log ( )
inline

◆ operator()()

void zeroerr::AssertionData::operator() ( )
inline

◆ setException()

void zeroerr::AssertionData::setException ( const std::exception & e)
inline

◆ setResult()

void zeroerr::AssertionData::setResult ( ExprResult && result)
inline

◆ shouldThrow()

bool zeroerr::AssertionData::shouldThrow ( )
inline

Member Data Documentation

◆ cond

zeroerr::String zeroerr::AssertionData::cond

◆ file

const char* zeroerr::AssertionData::file

◆ info

assert_info zeroerr::AssertionData::info

◆ line

unsigned zeroerr::AssertionData::line

◆ message

zeroerr::String zeroerr::AssertionData::message

◆ passed

bool zeroerr::AssertionData::passed

The documentation for this struct was generated from the following file: