|
|
|
|
|
||
All types and functions are defined within this namespace in C++
Typedefs | |
| typedef enum xContract_violation_type_t | violation_type_t |
| Alias for xContract_violation_type_t. | |
| typedef void(XCONTRACT_CALLCONV * | xContract_violationReport_fn_t )(char const *file, unsigned line, char const *function, char const *expression, char const *message, char const *qualifier, xContract_violation_type_t type, int level) |
| Reporting function prototype. | |
| typedef xContract_violationReport_fn_t | violationReport_fn_t |
| Alias for xContract_violationReport_fn_t. | |
Enumerations | |
| enum | xContract_violation_type_t { xContract_unexpectedCondition, xContract_precondition_logic, xContract_precondition_parameters, xContract_postcondition_returnValue, xContract_postcondition_logic, xContract_postcondition_parameters, xContract_invariant_class, xContract_invariant_global, xContract_staticData, xContract_intermediateAssumption, xContract_maximum_value } |
| The possible violation types. More... | |
Functions | |
| int | xContract_isConditionVerified (xContract_violation_type_t type, int level, char const *file, unsigned line, char const *function, char const *expression) |
| Application-defined function that determines whether a test for a given violation type at a given level should be verified. | |
| void | xContract_violationReport (char const *file, unsigned line, char const *function, char const *expression, char const *message, char const *qualifier, xContract_violation_type_t type, int level) |
| Stock reporting function, invoked when a custom function is not specified. | |
| XCONTRACT_NORETURN void | xContract_contract_violation (char const *file, unsigned line, char const *expression, char const *message, xContract_violation_type_t type) |
| Invoked to report and respond to a contract violation. | |
| XCONTRACT_NORETURN void | xContract_contract_violation2 (char const *file, unsigned line, char const *function, char const *expression, char const *message, char const *qualifier, xContract_violation_type_t type, int level, xContract_violationReport_fn_t pfnReport) |
| Invoked to report and respond to a contract violation. | |
| char const * | xContract_getViolationTypeString (xContract_violation_type_t type) |
| C-style string corresponding to the given violation type. | |
| size_t | xContract_getViolationTypeStringLength (xContract_violation_type_t type) |
| Length of the C-style string corresponding to the given violation type. | |
Alias for xContract_violation_type_t.
Alias for xContract_violationReport_fn_t.
| typedef void(XCONTRACT_CALLCONV * xContract_violationReport_fn_t)(char const *file, unsigned line, char const *function, char const *expression, char const *message, char const *qualifier, xContract_violation_type_t type, int level) |
Reporting function prototype.
The possible violation types.
|
|
|
| xContract Library documentation © Matthew Wilson and Synesis Software Pty Ltd, 2001-2008 |
|