COMMS
Template library intended to help with implementation of communication protocols.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
comms::Assert Class Referenceabstract

#include "comms/Assert.h"

Detailed Description

Base class for any custom assertion behaviour.

In order to implement custom assertion failure behaviour it is necessary to inherit from this class and override fail() virtual member function.

Public Member Functions

virtual ~Assert () noexcept
 Destructor.
 
virtual void fail (const char *expr, const char *file, unsigned int line, const char *function)=0
 Pure virtual function to be called when assertion fails.
 

Member Function Documentation

◆ fail()

virtual void comms::Assert::fail ( const char *  expr,
const char *  file,
unsigned int  line,
const char *  function 
)
pure virtual

Pure virtual function to be called when assertion fails.

Parameters
[in]exprAssertion condition/expression
[in]fileFile name
[in]lineLine number of the assert statement.
[in]functionFunction name.

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