Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages

Condition macros
[Concept]


Detailed Description

Macros used for to enforce preconditions and postconditions.

These macros are enabled if debug info is enabled and optimization is disabled in configure. Otherwise they are replaced by an empty string, so they won't cost any performance.

The macros throw Exception::Precondition or Exception::Postcondition respectively if the condition fails.


Defines

#define OPENMS_PRECONDITION(condition, message)
 Precondition macro.
#define OPENMS_POSTCONDITION(condition, message)
 Postcondition macro.


Define Documentation

#define OPENMS_POSTCONDITION ( condition,
message   ) 

Postcondition macro.

#define OPENMS_PRECONDITION ( condition,
message   ) 

Precondition macro.


Generated Tue Apr 1 15:36:40 2008 -- using doxygen 1.5.4 OpenMS / TOPP 1.1