tfel
Loading...
Searching...
No Matches
ContractViolation.hxx File Reference

Namespaces

namespace  tfel
 the namespace tfel encloses all the TFEL project. This namespace is empty.

Typedefs

using tfel::ContractViolationHandler = void (*)(const char* const)
 type of the functions called on a contract violation

Functions

TFELEXCEPTION_VISIBILITY_EXPORT TFEL_HOST void tfel::reportContractViolation (const char *const)
 report a contract violation
TFELEXCEPTION_VISIBILITY_EXPORT TFEL_HOST ContractViolationHandler tfel::setContractViolationHandler (const ContractViolationHandler)
 set the function called by reportContractViolation before aborting the program. This function is meant to throw an exception, for instance in the python bindings. If it returns, the program is aborted.

Detailed Description

Author
Thomas Helfer
Date
01/01/2021