summaryrefslogtreecommitdiff
path: root/core/everything_else.hpp
diff options
context:
space:
mode:
authorJan Huwald <jh@sotun.de>2012-05-07 20:01:51 (GMT)
committerJan Huwald <jh@sotun.de>2012-05-07 20:01:51 (GMT)
commit420d2ef464d4a741028e132e662d5626806a41f5 (patch)
tree1aca6eb512e4ed0fb5f3c10c528cb998b6ffd695 /core/everything_else.hpp
Initial commitHEADmaster
Diffstat (limited to 'core/everything_else.hpp')
-rw-r--r--core/everything_else.hpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/core/everything_else.hpp b/core/everything_else.hpp
new file mode 100644
index 0000000..8b18cd5
--- /dev/null
+++ b/core/everything_else.hpp
@@ -0,0 +1,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