Advanced Multi-Physics (AMP)
On-Line Documentation
Namespaces | Macros | Functions | Variables
UtilityMacros.h File Reference
#include <sstream>
#include <string_view>
#include "StackTrace/source_location.h"
Include dependency graph for UtilityMacros.h:

Go to the source code of this file.

Namespaces

namespace  AMP
 
namespace  StackTrace
 
namespace  StackTrace::Utilities
 

Macros

#define AMP_ASSERT(EXP)
 Assert error.
 
#define AMP_DEBUG_ASSERT(EXP)
 Assert error (debug only)
 
#define AMP_DEBUG_INSIST(EXP, MSG)
 Insist error.
 
#define AMP_ERROR(MSG)   StackTrace::Utilities::abort( MSG, SOURCE_LOCATION_CURRENT() )
 Throw error.
 
#define AMP_INSIST(EXP, MSG)
 Insist error.
 
#define AMP_WARN_ONCE(MSG)
 Print a warning.
 
#define AMP_WARNING(MSG)
 Print a warning.
 
#define DISABLE_WARNINGS
 Re-enable warnings.
 
#define ENABLE_WARNINGS
 Suppress all warnings.
 
#define STATIC_ERROR(MSG)   static_assert( failed_assert_v<TYPE>, MSG )
 Fail assert.
 

Functions

void StackTrace::Utilities::abort (const std::string &message, const source_location &source)
 
template<std::size_t N>
static std::string AMP::operator+ (char x[N], std::string_view y)
 
static std::string AMP::operator+ (std::string_view x, std::string_view y)
 
template<std::size_t N>
static std::string AMP::operator+ (std::string_view y, char x[N])
 

Variables

template<class T >
constexpr bool failed_assert_v = !std::is_same<T, T>::value
 

Variable Documentation

◆ failed_assert_v

template<class T >
constexpr bool failed_assert_v = !std::is_same<T, T>::value
inlineconstexpr

Definition at line 26 of file UtilityMacros.h.



Advanced Multi-Physics (AMP)
Oak Ridge National Laboratory
Idaho National Laboratory
Los Alamos National Laboratory
This page automatically produced from the
source code by doxygen
Last updated: Tue Mar 10 2026 13:06:41.
Comments on this page