Jlm
Classes | Namespaces | Macros | Functions
common.hpp File Reference
#include <cassert>
#include <iostream>
#include <stdexcept>
Include dependency graph for common.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  jlm::util::Error
 
class  jlm::util::TypeError
 

Namespaces

 jlm
 
 jlm::util
 

Macros

#define JLM_ASSERT(x)
 
#define JLM_NORETURN   __attribute__((noreturn))
 
#define JLM_UNREACHABLE(msg)   jlm::unreachable(msg, __FILE__, __LINE__)
 

Functions

static JLM_NORETURN void jlm::unreachable (const char *msg, const char *file, unsigned line)
 
template<class To , class From >
static To * jlm::util::assertedCast (From *value)
 

Macro Definition Documentation

◆ JLM_ASSERT

#define JLM_ASSERT (   x)
Value:
do \
{ \
} while (0 && (x))

Definition at line 16 of file common.hpp.

◆ JLM_NORETURN

#define JLM_NORETURN   __attribute__((noreturn))

Definition at line 22 of file common.hpp.

◆ JLM_UNREACHABLE

#define JLM_UNREACHABLE (   msg)    jlm::unreachable(msg, __FILE__, __LINE__)

Definition at line 43 of file common.hpp.