Gemmi C++ API
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
fail.hpp File Reference
#include <cerrno>
#include <stdexcept>
#include <system_error>
#include <string>
#include <utility>

Go to the source code of this file.

Namespaces

namespace  gemmi
 

Macros

#define GEMMI_COLD   __attribute__((noinline))
 
#define GEMMI_LIKELY(x)   (x)
 
#define GEMMI_UNLIKELY(x)   (x)
 
#define GEMMI_DLL   __attribute__((visibility("default")))
 

Functions

void gemmi::fail (const std::string &msg)
 
template<typename T , typename... Args>
void gemmi::fail (std::string &&str, T &&arg1, Args &&... args)
 
GEMMI_COLD void gemmi::fail (const char *msg)
 
GEMMI_COLD void gemmi::sys_fail (const std::string &msg)
 
GEMMI_COLD void gemmi::sys_fail (const char *msg)
 
void gemmi::unreachable ()
 

Macro Definition Documentation

◆ GEMMI_COLD

#define GEMMI_COLD   __attribute__((noinline))

Definition at line 28 of file fail.hpp.

◆ GEMMI_LIKELY

#define GEMMI_LIKELY (   x)    (x)

Definition at line 38 of file fail.hpp.

◆ GEMMI_UNLIKELY

#define GEMMI_UNLIKELY (   x)    (x)

Definition at line 39 of file fail.hpp.

◆ GEMMI_DLL

#define GEMMI_DLL   __attribute__((visibility("default")))

Definition at line 53 of file fail.hpp.