itpp_sci  1.0.0
it++ based simulation framework for scicoslab, scilab and scipy
Macros
_sci_assert.hpp File Reference

Error handling functions - header file. More...

Go to the source code of this file.

Macros

#define nITPP_EXCEPTIONS
 
#define SCI_EXCEPTIONS
 
#define itpp_sci_assert(t, s)
 Abort if t is not true. More...
 
#define itpp_sci_assert_debug(t, s)   itpp_sci_assert(t,s)
 Abort if t is not true and NDEBUG is not defined. More...
 
#define itpp_sci_assert0(t, s)   itpp_sci_assert_debug(t,s)
 Deprecated macro. Please use itpp_sci_assert_debug() instead. More...
 
#define itpp_sci_assert1(t, s)   itpp_sci_assert_debug(t,s)
 Deprecated macro. Please use itpp_sci_assert_debug() instead. More...
 
#define itpp_sci_error_if(t, s)
 Abort if t is true. More...
 
#define itpp_sci_error(s)
 Abort unconditionally. More...
 
#define itpp_sci_info(s)
 Print information message. More...
 
#define itpp_sci_info_no_endl(s)
 Print information message withot std::endl at the end. More...
 
#define itpp_sci_info_debug(s)   itpp_sci_info(s)
 Print information message if NDEBUG is not defined. More...
 
#define itpp_sci_info_no_endl_debug(s)   itpp_sci_info_no_endl(s)
 Print information message withot std::endl at the end if NDEBUG is not defined. More...
 
#define itpp_sci_warning(s)
 Display a warning message. More...
 

Detailed Description

Error handling functions - header file.

Author
Tobias Ringstrom and Adam Piatyszek

Copyright (C) 1995-2010 (see AUTHORS file for a list of contributors)

This file is part of IT++ - a C++ library of mathematical, signal processing, speech processing, and communications classes and functions.

IT++ is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

IT++ is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with IT++. If not, see http://www.gnu.org/licenses/.


Macro Definition Documentation

#define itpp_sci_assert (   t,
 
)
Value:
if (!(t)) { \
std::ostringstream m_sout; \
m_sout << s; \
itpp::itpp_sci_assert_f(#t,m_sout.str(),__FILE__,__LINE__); \
} else \
((void) 0)

Abort if t is not true.

#define itpp_sci_assert0 (   t,
 
)    itpp_sci_assert_debug(t,s)

Deprecated macro. Please use itpp_sci_assert_debug() instead.

#define itpp_sci_assert1 (   t,
 
)    itpp_sci_assert_debug(t,s)

Deprecated macro. Please use itpp_sci_assert_debug() instead.

#define itpp_sci_assert_debug (   t,
 
)    itpp_sci_assert(t,s)

Abort if t is not true and NDEBUG is not defined.

#define itpp_sci_error (   s)
Value:
if (true) { \
std::ostringstream m_sout; \
m_sout << s; \
itpp::itpp_sci_error_f(m_sout.str(),__FILE__,__LINE__); \
} else \
((void) 0)

Abort unconditionally.

#define itpp_sci_error_if (   t,
 
)
Value:
if((t)) { \
std::ostringstream m_sout; \
m_sout << s; \
itpp::itpp_sci_error_f(m_sout.str(),__FILE__,__LINE__); \
} else \
((void) 0)

Abort if t is true.

#define itpp_sci_info (   s)
Value:
if (true) { \
std::ostringstream m_sout; \
m_sout << s << std::endl; \
itpp::itpp_sci_info_f(m_sout.str()); \
} else \
((void) 0)

Print information message.

#define itpp_sci_info_debug (   s)    itpp_sci_info(s)

Print information message if NDEBUG is not defined.

#define itpp_sci_info_no_endl (   s)
Value:
if (true) { \
std::ostringstream m_sout; \
m_sout << s; \
itpp::itpp_sci_info_f(m_sout.str()); \
} else \
((void) 0)

Print information message withot std::endl at the end.

#define itpp_sci_info_no_endl_debug (   s)    itpp_sci_info_no_endl(s)

Print information message withot std::endl at the end if NDEBUG is not defined.

#define itpp_sci_warning (   s)
Value:
if (true) { \
std::ostringstream m_sout; \
m_sout << s; \
itpp::itpp_sci_warning_f(m_sout.str(),__FILE__,__LINE__); \
} else \
((void) 0)

Display a warning message.

#define nITPP_EXCEPTIONS
#define SCI_EXCEPTIONS