#include <iostream.h>
#include <stdlib.h>
Include dependency graph for pre-post-conditions.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Two different sets of macros are defined:
NMWR_DEBUG
is definedint* f(int* p) { REQUIRE((p != 0), "Pointer null!", 1); // work on p ... ENSURE((p != 0), "Pointer null!", 1); }
Definition in file pre-post-conditions.h.
|
Definition at line 35 of file pre-post-conditions.h. |
|
Value: _ERRORLOG << "\nERROR in FILE " << __FILE__ << ", LINE " << __LINE__\ << "\n(compiled on " << __DATE__ << " at " __TIME__ << " )\n"\ << "precondition violated:\n" Definition at line 37 of file pre-post-conditions.h. |
|
Value: _ERRORLOG << "\nERROR in FILE " << __FILE__ << ", LINE " << __LINE__\ << "\n(compiled on " << __DATE__ << " at " __TIME__ << " )\n"\ << ": postcondition violated:\n" Definition at line 41 of file pre-post-conditions.h. |
|
Definition at line 45 of file pre-post-conditions.h. Referenced by main. |
|
Definition at line 48 of file pre-post-conditions.h. |
|
Definition at line 60 of file pre-post-conditions.h. |
|
Definition at line 61 of file pre-post-conditions.h. |