CppUnit project page | FAQ | CppUnit home page

- Main Page
- Modules
- Namespaces
- Classes
- Files
- Related Pages

# Creating custom assertions

Collaboration diagram for Creating custom assertions:

## Classes
class | AdditionalMessage
| An additional Message for assertions. More...
struct | Asserter
| A set of functions to help writing assertion macros. More...
class | Message
| Message associated to an Exception. More...
class | SourceLine
| Represents a source line location. More...
## Defines
#define | CPPUNIT_SOURCELINE() CPPUNIT_NS::SourceLine( __FILE__, __LINE__ )
| Constructs a SourceLine object initialized with the location where the macro is expanded.

## Define Documentation

#define CPPUNIT_SOURCELINE | ( |  | ) | CPPUNIT_NS::SourceLine( __FILE__, __LINE__ )

Constructs a SourceLine object initialized with the location where the macro is expanded.

Used to write your own assertion macros.

See also:
  Asserter for example of usage.

| hosts this site. |  | Send comments to: CppUnit Developers