COMMS
Template library intended to help with implementation of communication protocols.
|
#include "comms/Assert.h"
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. | |
|
pure virtual |
Pure virtual function to be called when assertion fails.
[in] | expr | Assertion condition/expression |
[in] | file | File name |
[in] | line | Line number of the assert statement. |
[in] | function | Function name. |