Teuchos Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
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.
 
#define TEUCHOS_IF_ELSE_DEBUG_ASSERT()   else {}
 Macro to insert else block that throws in a debug build.
 

Macro Definition Documentation

◆ TEUCHOS_SWITCH_DEFAULT_DEBUG_ASSERT

#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.

◆ TEUCHOS_IF_ELSE_DEBUG_ASSERT

#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.