Teuchos Package Browser (Single Doxygen Collection) Version of the Day
Defines
Teuchos_DebugDefaultAsserts.hpp File Reference
#include "Teuchos_Assert.hpp"
Include dependency graph for Teuchos_DebugDefaultAsserts.hpp:

Go to the source code of this file.

Defines

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

Define Documentation

#define TEUCHOS_SWITCH_DEFAULT_DEBUG_ASSERT ( )    break

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 73 of file Teuchos_DebugDefaultAsserts.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines