Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

Debugging


Compounds

class  Error

Defines

#define ERROR_MSG(msg)
 Creates an error containing string msg and will throw a char* exception 'Error'.

#define ASSERT(expression)
 Paramater expression is an expression (including pointers) that evaluates to nonzero or 0. The ASSERT macro is typically used to identify logic errors during program development by implementing the expression argument to evaluate to false only when the program is operating incorrectly. Assertion checking can be turned off by compiling fast which is in essence equal to not defining the identifier ASSERT_ON. ASSERT_ON can be defined with a -D command-line option for the compiler or with a define directive. See Building the IDEA-DEV infrastructure for more details.

#define ASSERT_MSG(expression, number)
 Paramater expression is an expression (including pointers) that evaluates to nonzero or 0. The ASSERT macro is typically used to identify logic errors during program development by implementing the expression argument to evaluate to false only when the program is operating incorrectly. Assertion checking can be turned off by compiling fast which is in essence equal to not defining the identifier ASSERT_ON. ASSERT_ON can be defined with a -D command-line option for the compiler or with a define directive. See Building the IDEA-DEV infrastructure for more details.


Define Documentation

#define ASSERT expression   
 

Paramater expression is an expression (including pointers) that evaluates to nonzero or 0. The ASSERT macro is typically used to identify logic errors during program development by implementing the expression argument to evaluate to false only when the program is operating incorrectly. Assertion checking can be turned off by compiling fast which is in essence equal to not defining the identifier ASSERT_ON. ASSERT_ON can be defined with a -D command-line option for the compiler or with a define directive. See Building the IDEA-DEV infrastructure for more details.

If the expression evaluates to zero an char* exception will be thrown with value "Error". Information on what file, line and expression evaluated to zero will be streamed to the error stream.

#define ASSERT_MSG expression,
number   
 

Paramater expression is an expression (including pointers) that evaluates to nonzero or 0. The ASSERT macro is typically used to identify logic errors during program development by implementing the expression argument to evaluate to false only when the program is operating incorrectly. Assertion checking can be turned off by compiling fast which is in essence equal to not defining the identifier ASSERT_ON. ASSERT_ON can be defined with a -D command-line option for the compiler or with a define directive. See Building the IDEA-DEV infrastructure for more details.

If the expression evaluates to zero an char* exception will be thrown with value "Error" and information on what file, line, the expression and the parameter msg will be streamed to the error stream.

#define ERROR_MSG msg   
 

Value:

{ \
 std::stringstream sstr; \
 sstr << msg; \
 Error( sstr.str(), __FILE__, __LINE__).raise(); \
}
Creates an error containing string msg and will throw a char* exception 'Error'.


Contact information
© IDEA
Generated on Fri Feb 3 17:09:44 2006 for IDEA.