#include <iostream>
#include <string>
#include "spucconfig.h"
Include dependency graph for spucassert.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Namespaces | |
namespace | SPUC |
Defines | |
#define | it_assert0(t, s) ((void)0) |
#define | it_assert1(t, s) ((void)0) |
#define | it_assert(t, s) (void)((t) || (it_assert_f(#t,s,__FILE__,__LINE__),0)) |
Abort if t is NOT true and output s . | |
#define | it_error_if(t, s) (void)((!(t)) || (it_error_f(s,__FILE__,__LINE__),0)) |
Abort if t is true and output s . | |
#define | it_error(s) it_error_f(s,__FILE__,__LINE__) |
Abort and output s . | |
#define | it_warning(s) it_warning_f(s,__FILE__,__LINE__) |
Output the warning s . | |
Functions | |
void | SPUC::it_assert_f (string ass, string msg, string file, int line) |
Helper function for the it_assert functions. | |
void | SPUC::it_error_f (string msg, string file, int line) |
Helper function for the it_error functions. | |
void | SPUC::it_warning_f (string msg, string file, int line) |
Helper function for the it_warning functions. | |
void | SPUC::it_enable_exceptions (bool on) |
Enable/disable using exceptions for error handling. | |
void | SPUC::it_enable_warnings () |
Enable warnings. | |
void | SPUC::it_disable_warnings () |
Disable warnings. | |
void | SPUC::it_redirect_warnings (ostream *warn_stream) |
Redirect warnings to the ostream warn_stream. |
2002/11/12 10:49:50