TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
Loading...
Searching...
No Matches
macros.hpp
#include "./first_include.hpp"
#include "./traits.hpp"
#include <boost/utility/enable_if.hpp>
#include <nda/macros.hpp>
#include <type_traits>

Detailed Description

Common macros used in TRIQS.

Definition in file macros.hpp.

Go to the source code of this file.

Macros

#define DECL_AND_RETURN(...)
 Trailing-return-type convenience: expands to -> decltype(...) { return ...; }.
#define FORCEINLINE   __inline__ __attribute__((always_inline))
 Force-inline attribute portable across GCC and Clang.
#define TERMINATE(X)
 Macro that prints a message together with the source location and calls std::terminate().
#define TRIQS_CATCH_AND_ABORT
 Macro to catch exceptions, print the error message and return 1.
#define TRIQS_DEPRECATED(Message)
 Mark a function or type as deprecated with a custom message.
#define TRIQS_PRINT(X)
 Macro that prints the name and value of a variable together with the source location.