Teuchos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros
Teuchos_DebugDefaultAsserts.hpp File Reference
#include "Teuchos_Assert.hpp"
Include dependency graph for Teuchos_DebugDefaultAsserts.hpp:

Go to the source code of this file.

Macros

#define TEUCHOS_SWITCH_DEFAULT_DEBUG_ASSERT()
 Macro to insert switch default that throws in a debug build. More...
 
#define TEUCHOS_IF_ELSE_DEBUG_ASSERT()   else {}
 Macro to insert else block that throws in a debug build. More...
 

Macro Definition Documentation

#define TEUCHOS_SWITCH_DEFAULT_DEBUG_ASSERT ( )

Macro to insert switch default that throws in a debug build.

In a non-debug build, however, this does nothing. This is also helpful for removing code that would otherwise show as not being covered.

Definition at line 59 of file Teuchos_DebugDefaultAsserts.hpp.

#define TEUCHOS_IF_ELSE_DEBUG_ASSERT ( )    else {}

Macro to insert else block that throws in a debug build.

In a non-debug build, however, this does nothing. This is also helpful for removing code that would otherwise show as not being covered.

Definition at line 83 of file Teuchos_DebugDefaultAsserts.hpp.