summaryrefslogtreecommitdiff
path: root/core/everything_else.hpp
blob: 8b18cd5b27562ef4cc3acb05aab0152e0e9c1d76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef oaRGw4aWx0YufhAmmpm1h6BILQU
#define oaRGw4aWx0YufhAmmpm1h6BILQU

#include <assert.h>
#include <unistd.h>

void assertSimDir() {
  assert(access("topology_initialized", F_OK) == 0);
}

#define likely(x)       __builtin_expect(!!(x), 1)
#define unlikely(x)     __builtin_expect(!!(x), 0)

#endif // oaRGw4aWx0YufhAmmpm1h6BILQU
contact: Jan Huwald // Impressum