summaryrefslogtreecommitdiff
path: root/include/util/Noreturn.hpp
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2012-09-05 18:51:26 +0200
committerAndreas Baumann <abaumann@yahoo.com>2012-09-05 18:51:26 +0200
commitdf2c44401f8dd736a903e73813e5f83fb15b36b6 (patch)
treeb845f54b2dbb3f14dab435d2640c58b7b85e7975 /include/util/Noreturn.hpp
parent43aaf39cc828f4e1cec12a944560571993fb24f7 (diff)
downloadcrawler-df2c44401f8dd736a903e73813e5f83fb15b36b6.tar.gz
crawler-df2c44401f8dd736a903e73813e5f83fb15b36b6.tar.bz2
split away util, logger, and module
made a liblogger adapted all tests
Diffstat (limited to 'include/util/Noreturn.hpp')
-rw-r--r--include/util/Noreturn.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/util/Noreturn.hpp b/include/util/Noreturn.hpp
new file mode 100644
index 0000000..9f9862c
--- /dev/null
+++ b/include/util/Noreturn.hpp
@@ -0,0 +1,11 @@
+#ifndef __NORETURN_H_
+#define __NORETURN_H
+
+#ifdef __GNUC__
+#define CRAWLER_NORETURN __attribute__((noreturn))
+#else
+#define CRAWLER_NORETURN
+#endif
+
+#endif
+